diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-24 05:30:27 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-24 05:30:27 +0000 |
commit | 8b0cfe9042aa04a8f574fe4169ecea43b550b638 (patch) | |
tree | 8e7749ff3ddd1f02427c93fd1b0b3b4def88b238 | |
parent | d3199656be297d33696418f8730577fd30735445 (diff) |
* 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
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | gc.c | 4 |
2 files changed, 11 insertions, 0 deletions
@@ -1,3 +1,10 @@ +Wed Jun 24 14:25:17 2015 Koichi Sasada <ko1@atdot.net> + + * 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. + Wed Jun 24 12:49:11 2015 Nobuyoshi Nakada <nobu@ruby-lang.org> * string.c (rb_fstring_cstr): new function to make a fstring from @@ -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); |