Project

General

Profile

Bug #1525 ยป vm_deadlock_fix.diff

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

View differences:

thread.c
2709 2709
    VALUE thval = th->self;
2710 2710
    vm->main_thread = th;
2711 2711

  
2712
    native_mutex_initialize(&th->vm->global_vm_lock);
2712 2713
    st_foreach(vm->living_threads, atfork, (st_data_t)th);
2713 2714
    st_clear(vm->living_threads);
2714 2715
    st_insert(vm->living_threads, thval, (st_data_t)th->thread_id);