SWDEV-351980 - Acquire the code object lock in StatCO::getStatFuncName
Change-Id: I52ce2530d12fbe47e575feb2aab39bbfdfebd201
此提交包含在:
@@ -770,7 +770,9 @@ hipError_t StatCO::registerStatFunction(const void* hostFunction, Function* func
|
||||
return hipSuccess;
|
||||
}
|
||||
|
||||
const char* StatCO::getStatFuncName(const void* hostFunction) const {
|
||||
const char* StatCO::getStatFuncName(const void* hostFunction) {
|
||||
amd::ScopedLock lock(sclock_);
|
||||
|
||||
const auto it = functions_.find(hostFunction);
|
||||
if (it == functions_.end()) {
|
||||
return nullptr;
|
||||
|
||||
新增問題並參考
封鎖使用者