[w32handle] Ensure we initialize begore the gc attach the current thread (#3644)
[mono.git] / mono / metadata / boehm-gc.c
index d22f162085b376b1a0d7a64412e82acd8454b588..e7ee0517dd22bc28555975281b8c4820f4dd7f8d 100644 (file)
@@ -111,6 +111,10 @@ mono_gc_base_init (void)
 
        mono_counters_init ();
 
+#ifndef HOST_WIN32
+       mono_w32handle_init ();
+#endif
+
        /*
         * Handle the case when we are called from a thread different from the main thread,
         * confusing libgc.