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)
src/gc/windows/gcenv.windows.cpp

index a636478245d50c132ddffad823d852f6b6d138c4..471018e96994c6d50a346a0c5b2cc546a4e4de1d 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;
 }