#ifndef CROSSGEN_COMPILE
- // This isn't done as part of InitializeGarbageCollector() above because thread
- // creation requires AppDomains to have been set up.
- FinalizerThread::FinalizerThreadCreate();
-
#ifndef FEATURE_PAL
// Watson initialization must precede InitializeDebugger() and InstallUnhandledExceptionFilter()
// because on CoreCLR when Waston is enabled, debugging service needs to be enabled and UEF will be used.
hr = g_pGCHeap->Initialize();
IfFailGo(hr);
+ // This isn't done as part of InitializeGarbageCollector() above because thread
+ // creation requires AppDomains to have been set up.
+ FinalizerThread::FinalizerThreadCreate();
+
// Now we really have fully initialized the garbage collector
SetGarbageCollectorFullyInitialized();