ruby-changes:29160
From: ko1 <ko1@a...>
Date: Mon, 10 Jun 2013 17:21:21 +0900 (JST)
Subject: [ruby-changes:29160] ko1:r41212 (trunk): * gc.c (rgengc_remember): permit promoted object.
ko1 2013-06-10 17:21:08 +0900 (Mon, 10 Jun 2013) New Revision: 41212 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41212 Log: * gc.c (rgengc_remember): permit promoted object. (rb_gc_writebarrier -> remember) Modified files: trunk/ChangeLog trunk/gc.c Index: ChangeLog =================================================================== --- ChangeLog (revision 41211) +++ ChangeLog (revision 41212) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Mon Jun 10 17:20:01 2013 Koichi Sasada <ko1@a...> + + * gc.c (rgengc_remember): permit promoted object. + (rb_gc_writebarrier -> remember) + Mon Jun 10 17:14:01 2013 Koichi Sasada <ko1@a...> * gc.c (RVALUE_PROMOTE): fix parameter name (`x' to `obj') Index: gc.c =================================================================== --- gc.c (revision 41211) +++ gc.c (revision 41212) @@ -3552,11 +3552,6 @@ rgengc_remembersetbits_set(rb_objspace_t https://github.com/ruby/ruby/blob/trunk/gc.c#L3552 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"); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/