File tree 1 file changed +9
-8
lines changed
1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -837,6 +837,15 @@ void EEStartupHelper()
837
837
InitializeDebugger (); // throws on error
838
838
#endif // DEBUGGING_SUPPORTED
839
839
840
+ #ifdef PROFILING_SUPPORTED
841
+ // Initialize the profiling services.
842
+ // THis must happen before the finalizer thread is stopped on its first wait.
843
+ hr = ProfilingAPIUtility::InitializeProfiling ();
844
+
845
+ _ASSERTE (SUCCEEDED (hr));
846
+ IfFailGo (hr);
847
+ #endif // PROFILING_SUPPORTED
848
+
840
849
// This isn't done as part of InitializeGarbageCollector() above because
841
850
// debugger must be initialized before creating EE thread objects
842
851
FinalizerThread::FinalizerThreadCreate ();
@@ -867,14 +876,6 @@ void EEStartupHelper()
867
876
868
877
IfFailGo (hr);
869
878
870
- #ifdef PROFILING_SUPPORTED
871
- // Initialize the profiling services.
872
- hr = ProfilingAPIUtility::InitializeProfiling ();
873
-
874
- _ASSERTE (SUCCEEDED (hr));
875
- IfFailGo (hr);
876
- #endif // PROFILING_SUPPORTED
877
-
878
879
InitializeExceptionHandling ();
879
880
880
881
//
You can’t perform that action at this time.
0 commit comments