From 52ed085f3444f0dfd8e1c4cbd9e26e352956229c Mon Sep 17 00:00:00 2001
From: foreman
Date: Thu, 28 Sep 2017 17:57:35 -0400
Subject: [PATCH] P4 to Git Change 1464719 by gandryey@gera-w8 on 2017/09/28
17:50:10
SWDEV-79445 - OCL generic changes and code clean-up
- Disable runtime destruction. C++ wrapper and compiler lib static objects can be destroyed in undesired order and cause a crash
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/platform/runtime.cpp#38 edit
---
rocclr/runtime/platform/runtime.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rocclr/runtime/platform/runtime.cpp b/rocclr/runtime/platform/runtime.cpp
index d042215eae..21bd0d5f6a 100644
--- a/rocclr/runtime/platform/runtime.cpp
+++ b/rocclr/runtime/platform/runtime.cpp
@@ -80,7 +80,7 @@ void Runtime::tearDown() {
class RuntimeTearDown : public amd::HeapObject {
public:
RuntimeTearDown() {}
- ~RuntimeTearDown() { Runtime::tearDown(); }
+ ~RuntimeTearDown() { /*Runtime::tearDown();*/ }
} runtime_tear_down;
uint ReferenceCountedObject::retain() { return ++make_atomic(referenceCount_); }