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() {
837
837
getContext ()->urDdiTable .Context .pfnRelease (Handle);
838
838
assert (Result == UR_RESULT_SUCCESS);
839
839
840
- if (getOptions ().DetectLeaks ) {
840
+ if (getContext ()-> interceptor -> getOptions ().DetectLeaks ) {
841
841
// check memory leaks
842
842
std::vector<AllocationIterator> AllocInfos =
843
843
getContext ()->interceptor ->findAllocInfoByContext (Handle);
Original file line number Diff line number Diff line change @@ -291,6 +291,7 @@ class SanitizerInterceptor {
291
291
std::shared_ptr<DeviceInfo> &DeviceInfo);
292
292
293
293
private:
294
+ AsanOptions m_Options;
294
295
std::unordered_map<ur_context_handle_t , std::shared_ptr<ContextInfo>>
295
296
m_ContextMap;
296
297
ur_shared_mutex m_ContextMapMutex;
@@ -316,8 +317,6 @@ class SanitizerInterceptor {
316
317
317
318
std::unique_ptr<Quarantine> m_Quarantine;
318
319
319
- AsanOptions m_Options;
320
-
321
320
std::unordered_set<ur_adapter_handle_t > m_Adapters;
322
321
ur_shared_mutex m_AdaptersMutex;
323
322
};
You can’t perform that action at this time.
0 commit comments