Bug #1525 ยป vm_deadlock_fix.diff
thread.c | ||
---|---|---|
VALUE thval = th->self;
|
||
vm->main_thread = th;
|
||
native_mutex_initialize(&th->vm->global_vm_lock);
|
||
st_foreach(vm->living_threads, atfork, (st_data_t)th);
|
||
st_clear(vm->living_threads);
|
||
st_insert(vm->living_threads, thval, (st_data_t)th->thread_id);
|