check for uninitialized context array on final dump in the case if the test failed
[ROCm/rocprofiler commit: ccdb4fce0e]
此提交包含在:
1 父節點
c165aa7e6a
當前提交
3c694b0d42
1 file changed
+1
-1
@@ -242,7 +242,7 @@ void dump_context_array() {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
for (auto& v : *context_array) dump_context(&v.second);
|
||||
if (context_array) for (auto& v : *context_array) dump_context(&v.second);
|
||||
|
||||
if (pthread_mutex_unlock(&mutex) != 0) {
|
||||
perror("pthread_mutex_unlock");
|
||||
|
||||
Reference in new issue
封鎖使用者