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

ruby-changes:37924

From: ko1 <ko1@a...>
Date: Wed, 18 Mar 2015 17:15:43 +0900 (JST)
Subject: [ruby-changes:37924] ko1:r50005 (trunk): * gc.c (RVALUE_PROMOTE_RAW): rename to RVALUE_OLD_LONG_LIVED_SET()

ko1	2015-03-18 17:15:23 +0900 (Wed, 18 Mar 2015)

  New Revision: 50005

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

  Log:
    * gc.c (RVALUE_PROMOTE_RAW): rename to RVALUE_OLD_LONG_LIVED_SET()
      to make clear.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 50004)
+++ ChangeLog	(revision 50005)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Mar 18 17:14:39 2015  Koichi Sasada  <ko1@a...>
+
+	* gc.c (RVALUE_PROMOTE_RAW): rename to RVALUE_OLD_LONG_LIVED_SET()
+	  to make clear.
+
 Wed Mar 18 17:10:01 2015  Koichi Sasada  <ko1@a...>
 
 	* gc.c (check_rvalue_consistency): do not need to check is_sweeping().
Index: gc.c
===================================================================
--- gc.c	(revision 50004)
+++ gc.c	(revision 50005)
@@ -1071,7 +1071,7 @@ RVALUE_AGE(VALUE obj) https://github.com/ruby/ruby/blob/trunk/gc.c#L1071
 #endif
 
 static inline void
-RVALUE_PROMOTE_RAW(rb_objspace_t *objspace, VALUE obj)
+RVALUE_OLD_LONG_LIVED_SET(rb_objspace_t *objspace, VALUE obj)
 {
     MARK_IN_BITMAP(GET_HEAP_LONG_LIVED_BITS(obj), obj);
     objspace->rgengc.old_objects++;
@@ -1105,7 +1105,7 @@ RVALUE_AGE_INC(rb_objspace_t *objspace, https://github.com/ruby/ruby/blob/trunk/gc.c#L1105
     RBASIC(obj)->flags = RVALUE_FLAGS_AGE_SET(flags, age);
 
     if (age == RVALUE_OLD_AGE) {
-	RVALUE_PROMOTE_RAW(objspace, obj);
+	RVALUE_OLD_LONG_LIVED_SET(objspace, obj);
     }
     check_rvalue_consistency(obj);
 }
@@ -1118,7 +1118,7 @@ RVALUE_AGE_SET_OLD(rb_objspace_t *objspa https://github.com/ruby/ruby/blob/trunk/gc.c#L1118
     if (RGENGC_CHECK_MODE) assert(!RVALUE_OLD_P(obj));
 
     RBASIC(obj)->flags = RVALUE_FLAGS_AGE_SET(RBASIC(obj)->flags, RVALUE_OLD_AGE);
-    RVALUE_PROMOTE_RAW(objspace, obj);
+    RVALUE_OLD_LONG_LIVED_SET(objspace, obj);
 
     check_rvalue_consistency(obj);
 }

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

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