SWDEV-351980 - Acquire the code object lock in StatCO::getStatFuncName
Change-Id: I52ce2530d12fbe47e575feb2aab39bbfdfebd201
[ROCm/clr commit: a682934251]
This commit is contained in:
committed by
Laurent Morichetti
parent
91a6c2da56
commit
2f467284bb
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user