SWDEV-335780 - Indicate if handler is queued
Maintain status of handler callback. For event records we no longer
submit callbacks to reduce the load on the async handler thread. However
without a callback we leak command memory/decrement refcounts. Indicate
status of the handler which we can use to queue a callback when
finish is called.
Change-Id: I89fd02f3d047a0e8162664ee17581a14795f1928
[ROCm/clr commit: 5df34a2f7a]
Этот коммит содержится в:
1 родитель
acf2856677
Коммит
b3ad41f6e4
6 files changed
+20
-5
No files matched your search
@@ -114,8 +114,7 @@ void HostQueue::finish() {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (nullptr == command || !isCacheFlushed) {
|
||||
if (nullptr == command || !isCacheFlushed || vdev()->isHandlerPending()) {
|
||||
if (nullptr != command) {
|
||||
command->release();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user