Change necessary to enable standalonegc on server gc. Now CreateThread in gcenv...
authorJeff Schwartz <jeffschw@microsoft.com>
Thu, 30 Mar 2017 20:41:39 +0000 (13:41 -0700)
committerJeff Schwartz <jeffschw@microsoft.com>
Thu, 30 Mar 2017 20:41:39 +0000 (13:41 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/c5ad5fd0f83b26d00ef567b215a7dcd5dd8394c9

src/coreclr/src/gc/windows/gcenv.windows.cpp

index a636478..471018e 100644 (file)
@@ -597,6 +597,9 @@ bool GCToOSInterface::CreateThread(GCThreadFunction function, void* param, GCThr
         ::SetThreadAffinityMask(gc_thread, (DWORD_PTR)1 << affinity->Processor);
     }
 
+       ResumeThread(gc_thread);
+       CloseHandle(gc_thread);
+
     return true;
 }