From 8b0cfe9042aa04a8f574fe4169ecea43b550b638 Mon Sep 17 00:00:00 2001 From: ko1 Date: Wed, 24 Jun 2015 05:30:27 +0000 Subject: * gc.c (gc_mark_ptr): add a check code for #11244. It should be removed later. But we can remain this check because it is only a branch. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- gc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gc.c') diff --git a/gc.c b/gc.c index dd3d70c3ef..9b1870276c 100644 --- a/gc.c +++ b/gc.c @@ -4193,6 +4193,10 @@ gc_mark_ptr(rb_objspace_t *objspace, VALUE obj) { if (LIKELY(objspace->mark_func_data == NULL)) { rgengc_check_relation(objspace, obj); + + /* check code for Bug #11244 */ + if (BUILTIN_TYPE(obj) == T_NONE) rb_bug("gc_mark_ptr: obj is T_NONE"); + if (!gc_mark_set(objspace, obj)) return; /* already marked */ gc_aging(objspace, obj); gc_grey(objspace, obj); -- cgit v1.2.3