ruby-changes:39391
From: nobu <ko1@a...>
Date: Mon, 3 Aug 2015 13:35:41 +0900 (JST)
Subject: [ruby-changes:39391] nobu:r51472 (trunk): thread.c: fix message
nobu 2015-08-03 13:35:24 +0900 (Mon, 03 Aug 2015) New Revision: 51472 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51472 Log: thread.c: fix message * thread.c (thread_shield_get_mutex): fix object to be shown in the message, NULL pointer is useless. Modified files: trunk/thread.c Index: thread.c =================================================================== --- thread.c (revision 51471) +++ thread.c (revision 51472) @@ -4718,7 +4718,7 @@ thread_shield_get_mutex(VALUE self) https://github.com/ruby/ruby/blob/trunk/thread.c#L4718 { VALUE mutex = GetThreadShieldPtr(self); if (!mutex) - rb_raise(rb_eThreadError, "destroyed thread shield - %p", (void *)mutex); + rb_raise(rb_eThreadError, "destroyed thread shield - %p", (void *)self); return mutex; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/