Prevent core dumps at shutdown when the ETW subsystem races with debugger cleanup...
authorLee Culver <leculver@microsoft.com>
Fri, 20 May 2016 06:46:00 +0000 (23:46 -0700)
committerJan Kotas <jkotas@microsoft.com>
Fri, 20 May 2016 06:46:00 +0000 (23:46 -0700)
src/vm/ceemain.cpp
src/vm/eedbginterfaceimpl.cpp

index 9963e7c..1e6d0e8 100644 (file)
@@ -4188,7 +4188,6 @@ static void TerminateDebugger(void)
 
         // This will kill the helper thread, delete the Debugger object, and free all resources.
         g_pDebugInterface->StopDebugger();
-        g_pDebugInterface = NULL;
     }
 
     // Delete this after Debugger, since Debugger may use this.
index 2190820..53cb288 100644 (file)
@@ -1657,8 +1657,6 @@ BOOL EEDbgInterfaceImpl::ObjIsInstanceOf(Object *pElement, TypeHandle toTypeHnd)
 void EEDbgInterfaceImpl::ClearAllDebugInterfaceReferences()
 {
     LIMITED_METHOD_CONTRACT;
-
-    g_pDebugInterface = NULL;
 }
 
 #ifndef DACCESS_COMPILE