From 1fdbe0f437de59f87527818918b55d794a5fb92d Mon Sep 17 00:00:00 2001 From: nagachika Date: Thu, 9 Jun 2011 14:45:56 +0000 Subject: * gc.c (rb_objspace_call_finalizer): use rb_typeddata_is_kind_of() for type check to get rid of a double free when main Thread has singleton class. [ruby-core:36741] [Bug #4828] * thread.c (rb_obj_is_mutex): add a new utility function. * vm.c (rb_obj_is_thread): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- internal.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal.h') diff --git a/internal.h b/internal.h index 4e39e47f75..2ef1fc4337 100644 --- a/internal.h +++ b/internal.h @@ -27,6 +27,9 @@ struct rb_classext_struct { VALUE rb_big_uminus(VALUE x); +VALUE rb_obj_is_thread(VALUE obj); +VALUE rb_obj_is_mutex(VALUE obj); + #if defined(__cplusplus) #if 0 { /* satisfy cc-mode */ -- cgit v1.2.3