From ef22af4db0e38db406cfc46987cbe03582de2da0 Mon Sep 17 00:00:00 2001 From: Matt Valentine-House Date: Tue, 30 Jun 2020 22:19:18 +0100 Subject: If the GC runs before the Mutex's are initialised then we get a crash in pthread_mutex_lock. It is possible for GC to run during initialisation due to objects being allocated --- inits.c | 1 + 1 file changed, 1 insertion(+) (limited to 'inits.c') diff --git a/inits.c b/inits.c index a3eec164bb..f8eba911d5 100644 --- a/inits.c +++ b/inits.c @@ -20,6 +20,7 @@ static void Init_builtin_prelude(void); void rb_call_inits(void) { + CALL(Thread_Mutex); #if USE_TRANSIENT_HEAP CALL(TransientHeap); #endif -- cgit v1.2.1