File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
source/loader/layers/sanitizer Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -187,6 +187,8 @@ SanitizerInterceptor::~SanitizerInterceptor() {
187
187
DestroyShadowMemoryOnPVC ();
188
188
DestroyShadowMemoryOnDG2 ();
189
189
190
+ // We must release these objects before releasing adapters, since
191
+ // they may use the adapter in their destruction process
190
192
m_Quarantine = nullptr ;
191
193
m_MemBufferMap.clear ();
192
194
m_AllocationMap.clear ();
Original file line number Diff line number Diff line change @@ -49,9 +49,8 @@ struct DeviceInfo {
49
49
std::queue<std::shared_ptr<AllocInfo>> Quarantine;
50
50
size_t QuarantineSize = 0 ;
51
51
52
- // TODO: re-enable retaining and releasing device handles in DeviceInfo
53
- // constructor/destructor. See PR
54
- // https://github.com/oneapi-src/unified-runtime/pull/1883
52
+ // Device handles are special and alive in the whole process lifetime,
53
+ // so we needn't retain&release here.
55
54
explicit DeviceInfo (ur_device_handle_t Device) : Handle(Device) {}
56
55
57
56
ur_result_t allocShadowMemory (ur_context_handle_t Context);
Original file line number Diff line number Diff line change 6
6
* See LICENSE.TXT
7
7
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8
8
*
9
- * @file codeloc .cpp
9
+ * @file asan .cpp
10
10
*
11
11
*/
12
12
You can’t perform that action at this time.
0 commit comments