From 9ae9f7c9d3057f45afce56e6f696895b71c84489 Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 16 Dec 2013 10:22:03 +0000 Subject: [PATCH] * gc.c (rb_objspace_markable_object_p): should check special_const_p first (by is_markable_object()). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ gc.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 63981b3c81..6513b14598 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Dec 16 19:19:19 2013 Koichi Sasada + + * gc.c (rb_objspace_markable_object_p): should check special_const_p + first (by is_markable_object()). + Mon Dec 16 19:12:54 2013 Koichi Sasada * ext/objspace/objspace.c (reachable_object_from_root_i): use diff --git a/gc.c b/gc.c index 46cc440572..9328d76eeb 100644 --- a/gc.c +++ b/gc.c @@ -2267,7 +2267,7 @@ int rb_objspace_markable_object_p(VALUE obj) { rb_objspace_t *objspace = &rb_objspace; - return is_live_object(objspace, obj) && is_markable_object(objspace, obj); + return is_markable_object(objspace, obj) && is_live_object(objspace, obj); } /*