diff options
author | Aditya Mandaleeka <adityam@microsoft.com> | 2015-10-15 17:46:19 -0700 |
---|---|---|
committer | Aditya Mandaleeka <adityam@microsoft.com> | 2015-10-15 17:46:19 -0700 |
commit | 3d14d24f37e7728d9f1ec833b231f00c00693b76 (patch) | |
tree | 7078bf1d9c30d684a1d5a21d31aec0c24518404d /src/pal/src/init | |
parent | b409ad2b921c6e2fa4bd429f7a9560ef960ad701 (diff) | |
download | coreclr-3d14d24f37e7728d9f1ec833b231f00c00693b76.tar.gz coreclr-3d14d24f37e7728d9f1ec833b231f00c00693b76.tar.bz2 coreclr-3d14d24f37e7728d9f1ec833b231f00c00693b76.zip |
Remove unnecessary condemnation and suspension in PALCommonCleanup.
Diffstat (limited to 'src/pal/src/init')
-rw-r--r-- | src/pal/src/init/pal.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/pal/src/init/pal.cpp b/src/pal/src/init/pal.cpp index fbd246e6a8..eef38a9230 100644 --- a/src/pal/src/init/pal.cpp +++ b/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"); } } |