mirror of
https://github.com/ruby/ruby.git
synced 2025-09-18 01:54:00 +02:00
merges r24616 from trunk into ruby_1_9_1.
-- * thread.c (rb_check_deadlock): decrease number of sleepers before deadlock detection because the deadlock exception makes main thread run. [ruby-dev:39142] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e966115c7d
commit
67b79d6c84
3 changed files with 8 additions and 1 deletions
1
thread.c
1
thread.c
|
@ -3955,6 +3955,7 @@ rb_check_deadlock(rb_vm_t *vm)
|
|||
printf("%d %d %p %p\n", vm->living_threads->num_entries, vm->sleeper, GET_THREAD(), vm->main_thread);
|
||||
st_foreach(vm->living_threads, debug_i, (st_data_t)0);
|
||||
#endif
|
||||
vm->sleeper--;
|
||||
rb_thread_raise(2, argv, vm->main_thread);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue