From a8aaf133921e5cfcf6e0ee88dc6b69e9c52ecf75 Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 10 Jun 2013 08:21:08 +0000 Subject: [PATCH] * gc.c (rgengc_remember): permit promoted object. (rb_gc_writebarrier -> remember) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ gc.c | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index b9887fec1e..be4e5bb98c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Jun 10 17:20:01 2013 Koichi Sasada + + * gc.c (rgengc_remember): permit promoted object. + (rb_gc_writebarrier -> remember) + Mon Jun 10 17:14:01 2013 Koichi Sasada * gc.c (RVALUE_PROMOTE): fix parameter name (`x' to `obj') diff --git a/gc.c b/gc.c index 772966b65f..bfdf66b58a 100644 --- a/gc.c +++ b/gc.c @@ -3552,11 +3552,6 @@ rgengc_remembersetbits_set(rb_objspace_t *objspace, VALUE obj) static void rgengc_remember(rb_objspace_t *objspace, VALUE obj) { - if (RGENGC_CHECK_MODE && RVALUE_PROMOTED(obj)) { - rb_bug("rgengc_remember: %p (%s) is promoted object", - (void *)obj, obj_type_name(obj)); - } - rgengc_report(0, objspace, "rgengc_remember: %p (%s, %s) %s\n", (void *)obj, obj_type_name(obj), RVALUE_SHADY(obj) ? "shady" : "non-shady", rgengc_remembersetbits_get(objspace, obj) ? "was already remembered" : "is remembered now");