diff options
author | Matt Valentine-House <matt@eightbitraptor.com> | 2020-06-30 22:19:18 +0100 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2020-09-10 08:48:51 -0700 |
commit | ef22af4db0e38db406cfc46987cbe03582de2da0 (patch) | |
tree | ebee7c25afce4527d5c23dd0481143ad2d4b7223 /inits.c | |
parent | 867204c4a558f318be9d39da47298d5ccc85ff17 (diff) | |
download | ruby-ef22af4db0e38db406cfc46987cbe03582de2da0.tar.gz |
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
Diffstat (limited to 'inits.c')
-rw-r--r-- | inits.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |