      rb_remove_event_hook(call_trace_func);
  
      if (NIL_P(trace)) {
-@@ -3912,7 +3947,13 @@
+@@ -3912,7 +3955,13 @@
  	rb_raise(rb_eTypeError, "trace_func needs to be Proc");
      }
  

     return trace;
 }
 
@@ -3977,6 +4018,8 @@
 	return "class";
       case RUBY_EVENT_END:
 	return "end";

     struct METHOD *data;
Index: thread.c
===================================================================
--- thread.c	(revision 26851)
+++ thread.c	(working copy)
@@ -336,6 +336,16 @@
 static void rb_mutex_unlock_all(mutex_t *mutex, rb_thread_t *th);
