We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbecf2a commit 250f759Copy full SHA for 250f759
source/loader/layers/sanitizer/asan_interceptor.hpp
@@ -203,6 +203,7 @@ class SanitizerInterceptor {
203
std::shared_ptr<MemBuffer> getMemBuffer(ur_mem_handle_t MemHandle);
204
205
ur_result_t holdAdapter(ur_adapter_handle_t Adapter) {
206
+ std::scoped_lock<ur_shared_mutex> Guard(m_AdaptersMutex);
207
if (m_Adapters.find(Adapter) != m_Adapters.end()) {
208
return UR_RESULT_SUCCESS;
209
}
@@ -274,6 +275,7 @@ class SanitizerInterceptor {
274
275
logger::Logger &logger;
276
277
std::unordered_set<ur_adapter_handle_t> m_Adapters;
278
+ ur_shared_mutex m_AdaptersMutex;
279
};
280
281
} // namespace ur_sanitizer_layer
0 commit comments