From 034540dbc1f761221c1977465b13b00b4f558108 Mon Sep 17 00:00:00 2001 From: kosaki Date: Fri, 4 Feb 2011 16:05:40 +0000 Subject: * vm_core.h (GetThreadPtr): use TypedData_Get_Struct() instead CoreDataFromValue() because we need type check. Otherwise, type mismatch can cause segmentation fault crash. [ruby-core:35086] [Ruby 1.9-Bug#4367] * vm.c (thread_data_type): remove static. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm.c') diff --git a/vm.c b/vm.c index 130ca64160..1dbf2ecabb 100644 --- a/vm.c +++ b/vm.c @@ -1756,7 +1756,7 @@ thread_memsize(const void *ptr) } } -static const rb_data_type_t thread_data_type = { +const rb_data_type_t thread_data_type = { "VM/thread", { rb_thread_mark, -- cgit v1.2.3