SWDEV-382397 - Move VirtualGPU destruction back to the thread exit

OS can terminate unfinished queue thread from default stream at any
time. Potentially leaving the queue lock in a bad state and causing a
deadlock if runtime destroys VirtualGPU later from the host thread.

Change-Id: I247f102ee84e6b4dba947504933395071945c85d


[ROCm/clr commit: 28daf98f1f]
Ta zmiana jest zawarta w:
German authored and German Andryeyev committed 2023-02-17 10:05:49 -05:00
1 rodzic 06ffd15060
złożenie 73f02aa6dc
2 plików zmienionych
+4 -7

Żadne pliki nie pasują do Twojego wyszukiwania

+1
Wyświetl plik
@@ -66,6 +66,7 @@ bool HostQueue::terminate() {
marker->awaitCompletion();
marker->release();
}
thread_.Release();
thread_.acceptingCommands_ = false;
} else {
if (Os::isThreadAlive(thread_)) {