[前][次][番号順一覧][スレッド一覧]

ruby-changes:34270

From: ko1 <ko1@a...>
Date: Thu, 5 Jun 2014 10:05:21 +0900 (JST)
Subject: [ruby-changes:34270] ko1:r46351 (trunk): * gc.c (obj_free): check also FL_PROMOTED bit by RVALUE_OLD_P().

ko1	2014-06-05 10:05:07 +0900 (Thu, 05 Jun 2014)

  New Revision: 46351

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46351

  Log:
    * gc.c (obj_free): check also FL_PROMOTED bit by RVALUE_OLD_P().

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 46350)
+++ ChangeLog	(revision 46351)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Jun  5 10:03:29 2014  Koichi Sasada  <ko1@a...>
+
+	* gc.c (obj_free): check also FL_PROMOTED bit by RVALUE_OLD_P().
+
 Thu Jun  5 03:45:28 2014  Eric Wong  <e@8...>
 
 	* configure.in: add --with-jemalloc option
Index: gc.c
===================================================================
--- gc.c	(revision 46350)
+++ gc.c	(revision 46351)
@@ -1562,7 +1562,7 @@ obj_free(rb_objspace_t *objspace, VALUE https://github.com/ruby/ruby/blob/trunk/gc.c#L1562
     }
 
 #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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]