diff options
Diffstat (limited to 'boehm-gc/misc.c')
-rw-r--r-- | boehm-gc/misc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/boehm-gc/misc.c b/boehm-gc/misc.c index 2bb93f3dd57..06d7085d06e 100644 --- a/boehm-gc/misc.c +++ b/boehm-gc/misc.c @@ -436,6 +436,11 @@ void GC_init() DCL_LOCK_STATE; DISABLE_SIGNALS(); + +#ifdef MSWIN32 + if (!GC_is_initialized) InitializeCriticalSection(&GC_allocate_ml); +#endif /* MSWIN32 */ + LOCK(); GC_init_inner(); UNLOCK(); |