Allocating the DebuggerDataBreakpoint object in the right heap
authorAndrew Au <andrewau@microsoft.com>
Thu, 20 Sep 2018 23:44:39 +0000 (16:44 -0700)
committerAndrew Au <cshung@gmail.com>
Wed, 7 Nov 2018 02:34:47 +0000 (18:34 -0800)
Commit migrated from https://github.com/dotnet/coreclr/commit/2db5af268afc606a5ce4675899af5808c6b8a459

src/coreclr/src/debug/ee/controller.cpp

index f8bd932..74d9f11 100644 (file)
@@ -2730,7 +2730,7 @@ DPOSS_ACTION DebuggerController::ScanForTriggers(CORDB_ADDRESS_TYPE *address,
         tpr != TPR_TRIGGER_ONLY_THIS && 
         DebuggerDataBreakpoint::TriggerDataBreakpoint(thread, context))
     {
-        DebuggerDataBreakpoint *pDataBreakpoint = new DebuggerDataBreakpoint(thread);
+        DebuggerDataBreakpoint *pDataBreakpoint = new (interopsafe) DebuggerDataBreakpoint(thread);
         pDcq->dcqEnqueue(pDataBreakpoint, FALSE);
     }