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

ruby-changes:32065

From: tmm1 <ko1@a...>
Date: Thu, 12 Dec 2013 13:43:19 +0900 (JST)
Subject: [ruby-changes:32065] tmm1:r44144 (trunk): gc.c: fix typo (RVALUE_OLDEGN_BITMAP -> RVALUE_OLDGEN_BITMAP)

tmm1	2013-12-12 13:43:14 +0900 (Thu, 12 Dec 2013)

  New Revision: 44144

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

  Log:
    gc.c: fix typo (RVALUE_OLDEGN_BITMAP -> RVALUE_OLDGEN_BITMAP)

  Modified files:
    trunk/gc.c
Index: gc.c
===================================================================
--- gc.c	(revision 44143)
+++ gc.c	(revision 44144)
@@ -699,7 +699,7 @@ static void rgengc_rememberset_mark(rb_o https://github.com/ruby/ruby/blob/trunk/gc.c#L699
 #define RVALUE_RAW_SHADY(obj)     (!FL_TEST2((obj), FL_WB_PROTECTED))
 #define RVALUE_SHADY(obj)         RVALUE_RAW_SHADY(check_gen_consistency((VALUE)obj))
 
-#define RVALUE_OLDEGN_BITMAP(obj) MARKED_IN_BITMAP(GET_HEAP_OLDGEN_BITS(obj), (obj))
+#define RVALUE_OLDGEN_BITMAP(obj) MARKED_IN_BITMAP(GET_HEAP_OLDGEN_BITS(obj), (obj))
 
 static inline int is_pointer_to_heap(rb_objspace_t *objspace, void *ptr);
 static inline int gc_marked(rb_objspace_t *objspace, VALUE ptr);
@@ -708,7 +708,7 @@ static inline VALUE https://github.com/ruby/ruby/blob/trunk/gc.c#L708
 check_gen_consistency(VALUE obj)
 {
     if (RGENGC_CHECK_MODE > 0) {
-	int old_flag = RVALUE_OLDEGN_BITMAP(obj) != 0;
+	int old_flag = RVALUE_OLDGEN_BITMAP(obj) != 0;
 	int promoted_flag = FL_TEST2(obj, FL_PROMOTED);
 	rb_objspace_t *objspace = &rb_objspace;
 
@@ -754,7 +754,7 @@ static inline VALUE https://github.com/ruby/ruby/blob/trunk/gc.c#L754
 RVALUE_OLD_BITMAP_P(VALUE obj)
 {
     check_gen_consistency(obj);
-    return (RVALUE_OLDEGN_BITMAP(obj) != 0);
+    return (RVALUE_OLDGEN_BITMAP(obj) != 0);
 }
 
 static inline VALUE
@@ -807,7 +807,7 @@ static inline VALUE https://github.com/ruby/ruby/blob/trunk/gc.c#L807
 RVALUE_YOUNG_P(VALUE obj)
 {
     check_gen_consistency(obj);
-    return FL_TEST2(obj, FL_PROMOTED) && (RVALUE_OLDEGN_BITMAP(obj) == 0);
+    return FL_TEST2(obj, FL_PROMOTED) && (RVALUE_OLDGEN_BITMAP(obj) == 0);
 }
 
 static inline void

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

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