From 7320d83753d90ff7fcc78567589f1eb52a7de9a0 Mon Sep 17 00:00:00 2001 From: mame Date: Mon, 23 Apr 2012 15:27:00 +0000 Subject: [PATCH] * thread.c (rb_check_deadlock): refine an error message of deadlock detection. [ruby-core:44336] [Bug #6288] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ thread.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 63c2524647..a99751cf5b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Apr 24 00:25:39 2012 Yusuke Endoh + + * thread.c (rb_check_deadlock): refine an error message of deadlock + detection. [ruby-core:44336] [Bug #6288] + Tue Apr 24 00:14:42 2012 Yusuke Endoh * parse.y (primary): remove wrong "fixpos" that caused incorrect diff --git a/thread.c b/thread.c index 1fcdf824f9..7383a886f6 100644 --- a/thread.c +++ b/thread.c @@ -4731,7 +4731,7 @@ rb_check_deadlock(rb_vm_t *vm) if (!found) { VALUE argv[2]; argv[0] = rb_eFatal; - argv[1] = rb_str_new2("deadlock detected"); + argv[1] = rb_str_new2("No live threads left. Deadlock?"); #ifdef DEBUG_DEADLOCK_CHECK 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);