Project

General

Profile

Bug #1525 ยป vm_deadlock_fix.diff

hongli (Hongli Lai), 11/17/2009 09:58 PM

View differences:

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);
    (1-1/1)