From 9adec1f8bbc13004376f9759dfae2dcb20e57073 Mon Sep 17 00:00:00 2001
From: foreman
Date: Fri, 30 Jan 2015 15:10:24 -0500
Subject: [PATCH] P4 to Git Change 1117053 by weizhang@weizhang-lnx-opencl-tmp
on 2015/01/30 14:40:55
EPR #410989 - Set globalScratchBuf_ to NULL after it is deleted.
The issue is that scratch buffer will be destroyed again when the transfer queue is destroyed.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#492 edit
[ROCm/clr commit: 6ea7225039953e0d2d2744bc9374505a5632519a]
---
projects/clr/rocclr/runtime/device/gpu/gpudevice.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/projects/clr/rocclr/runtime/device/gpu/gpudevice.cpp b/projects/clr/rocclr/runtime/device/gpu/gpudevice.cpp
index c83148de0d..bab422332d 100644
--- a/projects/clr/rocclr/runtime/device/gpu/gpudevice.cpp
+++ b/projects/clr/rocclr/runtime/device/gpu/gpudevice.cpp
@@ -430,6 +430,7 @@ Device::~Device()
}
delete globalScratchBuf_;
+ globalScratchBuf_ = NULL;
// Destroy transfer queue
delete xferQueue_;