P4 to Git Change 1151415 by jatang@jatang-opencl-hsa-stg1 on 2015/05/15 11:06:22

EPR #412821 - Fix a crash when the ThreadTrace Object is freed before a ThreadTrace command is processed.

	Also change 'None' to 'Undefined', since 'None' is a macro defined in X.h.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/platform/command.hpp#77 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/threadtrace.hpp#5 edit
This commit is contained in:
foreman committed 2015-05-15 11:14:53 -04:00
1 parent 3f973726f8
commit 5da96e702c
2 files changed
+27 -5

No files matched your search

+2 -2
View File
@@ -29,7 +29,7 @@ class ThreadTrace : public RuntimeObject
{
public:
enum State {
None,
Undefined,
MemoryBound,
Begin,
End,
@@ -64,7 +64,7 @@ public:
const Device& device) //!< device object
: deviceThreadTrace_(NULL)
,device_(device)
,state_(None)
,state_(Undefined)
{ }
//! Get the thread trace's associated device