From fc7400d30220d42c8eb65b2d350590ddb7e2b68f Mon Sep 17 00:00:00 2001 From: Aditya Mandaleeka Date: Thu, 15 Oct 2015 17:46:19 -0700 Subject: [PATCH] Remove unnecessary condemnation and suspension in PALCommonCleanup. Commit migrated from https://github.com/dotnet/coreclr/commit/3d14d24f37e7728d9f1ec833b231f00c00693b76 --- src/coreclr/src/pal/src/init/pal.cpp | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/coreclr/src/pal/src/init/pal.cpp b/src/coreclr/src/pal/src/init/pal.cpp index fbd246e..eef38a9 100644 --- a/src/coreclr/src/pal/src/init/pal.cpp +++ b/src/coreclr/src/pal/src/init/pal.cpp @@ -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"); } } -- 2.7.4