(fix of commit
d5c65315b)
* misc.c [GC_ASSERTIONS && GC_ALWAYS_MULTITHREADED] (GC_init): Move up
LOCK() call to precede GC_expand_hp_inner() call.
GC_set_max_heap_size(max_heap_sz);
}
}
+# if defined(GC_ASSERTIONS) && defined(GC_ALWAYS_MULTITHREADED)
+ LOCK(); /* just to set GC_lock_holder */
+# endif
if (!GC_expand_hp_inner(divHBLKSZ(initial_heap_sz))) {
GC_err_printf("Can't start up: not enough memory\n");
EXIT();
GC_pcr_install();
# endif
GC_is_initialized = TRUE;
-# if defined(GC_ASSERTIONS) && defined(GC_ALWAYS_MULTITHREADED)
- LOCK(); /* just to set GC_lock_holder */
-# endif
# if defined(GC_PTHREADS) || defined(GC_WIN32_THREADS)
GC_thr_init();
# ifdef PARALLEL_MARK