Move rundown to the same code-site where we do ETW rundown before EEShutdown is marke...
authorBrian Robbins <brianrob@microsoft.com>
Fri, 26 May 2017 21:39:42 +0000 (14:39 -0700)
committerGitHub <noreply@github.com>
Fri, 26 May 2017 21:39:42 +0000 (14:39 -0700)
src/vm/ceemain.cpp

index 3d00355..de6059a 100644 (file)
@@ -1563,6 +1563,11 @@ void STDMETHODCALLTYPE EEShutDownHelper(BOOL fIsDllUnloading)
         ETW::EnumerationLog::ProcessShutdown();
     }
 
+#ifdef FEATURE_PERFTRACING
+    // Shutdown the event pipe.
+    EventPipe::Shutdown();
+#endif // FEATURE_PERFTRACING
+
 #if defined(FEATURE_COMINTEROP)
     // Get the current thread.
     Thread * pThisThread = GetThread();
@@ -1695,11 +1700,6 @@ void STDMETHODCALLTYPE EEShutDownHelper(BOOL fIsDllUnloading)
         PerfMap::Destroy();
 #endif
 
-#ifdef FEATURE_PERFTRACING
-        // Shutdown the event pipe.
-        EventPipe::Shutdown();
-#endif // FEATURE_PERFTRACING
-
 #ifdef FEATURE_PREJIT
         {
             // If we're doing basic block profiling, we need to write the log files to disk.