summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-05 01:05:07 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-05 01:05:07 +0000
commit0e3debf15b880e2620c9a64537e613d83dd196ea (patch)
tree9cfea3a50d8db406ad7d0d8172e4b8366f713a3d
parent045aef853e6f4617cf149b15465f81691ffc11a0 (diff)
* gc.c (obj_free): check also FL_PROMOTED bit by RVALUE_OLD_P().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--gc.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 512f321a912..a018d853064 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Thu Jun 5 10:03:29 2014 Koichi Sasada <ko1@atdot.net>
+
+ * gc.c (obj_free): check also FL_PROMOTED bit by RVALUE_OLD_P().
+
Thu Jun 5 03:45:28 2014 Eric Wong <e@80x24.org>
* configure.in: add --with-jemalloc option
diff --git a/gc.c b/gc.c
index 5be3ca12940..18984fd0366 100644
--- a/gc.c
+++ b/gc.c
@@ -1562,7 +1562,7 @@ obj_free(rb_objspace_t *objspace, VALUE obj)
}
#if USE_RGENGC
- if (MARKED_IN_BITMAP(GET_HEAP_OLDGEN_BITS(obj), obj)) {
+ if (RVALUE_OLD_P(obj)) {
CLEAR_IN_BITMAP(GET_HEAP_OLDGEN_BITS(obj), obj);
}
#endif