File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
source/loader/layers/sanitizer Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -837,7 +837,7 @@ ContextInfo::~ContextInfo() {
837837 getContext ()->urDdiTable .Context .pfnRelease (Handle);
838838 assert (Result == UR_RESULT_SUCCESS);
839839
840- if (getOptions ().DetectLeaks ) {
840+ if (getContext ()-> interceptor -> getOptions ().DetectLeaks ) {
841841 // check memory leaks
842842 std::vector<AllocationIterator> AllocInfos =
843843 getContext ()->interceptor ->findAllocInfoByContext (Handle);
Original file line number Diff line number Diff line change @@ -291,6 +291,7 @@ class SanitizerInterceptor {
291291 std::shared_ptr<DeviceInfo> &DeviceInfo);
292292
293293 private:
294+ AsanOptions m_Options;
294295 std::unordered_map<ur_context_handle_t , std::shared_ptr<ContextInfo>>
295296 m_ContextMap;
296297 ur_shared_mutex m_ContextMapMutex;
@@ -316,8 +317,6 @@ class SanitizerInterceptor {
316317
317318 std::unique_ptr<Quarantine> m_Quarantine;
318319
319- AsanOptions m_Options;
320-
321320 std::unordered_set<ur_adapter_handle_t > m_Adapters;
322321 ur_shared_mutex m_AdaptersMutex;
323322};
You can’t perform that action at this time.
0 commit comments