From: Aditya Mandaleeka Date: Fri, 16 Oct 2015 00:46:19 +0000 (-0700) Subject: Remove unnecessary condemnation and suspension in PALCommonCleanup. X-Git-Tag: submit/tizen/20210909.063632~11030^2~12028^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc7400d30220d42c8eb65b2d350590ddb7e2b68f;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Remove unnecessary condemnation and suspension in PALCommonCleanup. Commit migrated from https://github.com/dotnet/coreclr/commit/3d14d24f37e7728d9f1ec833b231f00c00693b76 --- 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"); } }