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]
Цей коміт міститься в:
@@ -114,8 +114,7 @@ void HostQueue::finish() {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (nullptr == command || !isCacheFlushed) {
|
||||
if (nullptr == command || !isCacheFlushed || vdev()->isHandlerPending()) {
|
||||
if (nullptr != command) {
|
||||
command->release();
|
||||
}
|
||||
|
||||
Посилання в новій задачі
Заблокувати користувача