mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
a03ac78b2c
commit
a8aaf13392
2 changed files with 5 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon Jun 10 17:20:01 2013 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* gc.c (rgengc_remember): permit promoted object.
|
||||
(rb_gc_writebarrier -> remember)
|
||||
|
||||
Mon Jun 10 17:14:01 2013 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* gc.c (RVALUE_PROMOTE): fix parameter name (`x' to `obj')
|
||||
|
|
5
gc.c
5
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");
|
||||
|
|
Loading…
Reference in a new issue