Remove unnecessary condemnation and suspension in PALCommonCleanup.
authorAditya Mandaleeka <adityam@microsoft.com>
Fri, 16 Oct 2015 00:46:19 +0000 (17:46 -0700)
committerAditya Mandaleeka <adityam@microsoft.com>
Fri, 16 Oct 2015 00:46:19 +0000 (17:46 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/3d14d24f37e7728d9f1ec833b231f00c00693b76

src/coreclr/src/pal/src/init/pal.cpp

index fbd246e..eef38a9 100644 (file)
@@ -756,11 +756,11 @@ Parameters :
 void 
 PALCommonCleanup(BOOL full_cleanup)
 {
-    static bool done = false;
+    static bool cleanupDone = false;
 
-    if (!done)
+    if (!cleanupDone)
     {
-        done = true;
+        cleanupDone = true;
 
         PALSetShutdownIntent();
 
@@ -773,15 +773,6 @@ PALCommonCleanup(BOOL full_cleanup)
 #ifdef _DEBUG
         PROCDumpThreadList();
 #endif
-
-        TRACE("About to suspend every other thread\n");
-
-        /* prevent other threads from acquiring signaled objects */
-        PROCCondemnOtherThreads();
-        /* prevent other threads from using services we're shutting down */
-        PROCSuspendOtherThreads();
-
-        TRACE("Every other thread suspended until exit\n");
     }
 }