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

ruby-changes:29159

From: ko1 <ko1@a...>
Date: Mon, 10 Jun 2013 17:15:42 +0900 (JST)
Subject: [ruby-changes:29159] ko1:r41211 (trunk): * gc.c (RVALUE_PROMOTE): fix parameter name (`x' to `obj')

ko1	2013-06-10 17:15:31 +0900 (Mon, 10 Jun 2013)

  New Revision: 41211

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

  Log:
    * gc.c (RVALUE_PROMOTE): fix parameter name (`x' to `obj')
      and make it inline function (like RVALUE_PROMOTE).

  Modified files:
    trunk/ChangeLog
    trunk/gc.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 41210)
+++ ChangeLog	(revision 41211)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Jun 10 17:14:01 2013  Koichi Sasada  <ko1@a...>
+
+	* gc.c (RVALUE_PROMOTE): fix parameter name (`x' to `obj')
+	  and make it inline function (like RVALUE_PROMOTE).
+
 Mon Jun 10 16:22:50 2013  Koichi Sasada  <ko1@a...>
 
 	* array.c (rb_ary_new_from_values): add assertion
Index: gc.c
===================================================================
--- gc.c	(revision 41210)
+++ gc.c	(revision 41211)
@@ -516,11 +516,13 @@ RVALUE_PROMOTE(VALUE obj) https://github.com/ruby/ruby/blob/trunk/gc.c#L516
     }
 #endif
 }
-#define RVALUE_DEMOTE(x)      do{					\
-	FL_UNSET2((x), FL_OLDGEN);					\
-	CLEAR_IN_BITMAP(GET_HEAP_OLDGEN_BITS(obj), obj);		\
-    }while(0)
 
+static inline void
+RVALUE_DEMOTE(VALUE obj)
+{
+    FL_UNSET2(obj, FL_OLDGEN);
+    CLEAR_IN_BITMAP(GET_HEAP_OLDGEN_BITS(obj), obj);
+}
 #endif
 
 static void

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

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