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

ruby-changes:35388

From: nobu <ko1@a...>
Date: Tue, 9 Sep 2014 15:39:19 +0900 (JST)
Subject: [ruby-changes:35388] nobu:r47470 (trunk): gc.c: fix typos

nobu	2014-09-09 15:39:08 +0900 (Tue, 09 Sep 2014)

  New Revision: 47470

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

  Log:
    gc.c: fix typos
    
    * gc.c (gc_stat_transition): fix typos.

  Modified files:
    trunk/gc.c
Index: gc.c
===================================================================
--- gc.c	(revision 47469)
+++ gc.c	(revision 47470)
@@ -3171,12 +3171,12 @@ gc_heap_prepare_minimum_pages(rb_objspac https://github.com/ruby/ruby/blob/trunk/gc.c#L3171
 static void
 gc_stat_transition(rb_objspace_t *objspace, enum gc_stat stat)
 {
-#if RGEGNC_CHECK_MODE
+#if RGENGC_CHECK_MODE
     enum gc_stat prev_stat = objspace->flags.stat;
     switch (prev_stat) {
       case gc_stat_none: assert(stat == gc_stat_marking); break;
-      case gc_stat_mark: assert(stat == gc_stat_sweeping); break;
-      case gc_stat_sweep: assert(stat == gc_stat_none); break;
+      case gc_stat_marking: assert(stat == gc_stat_sweeping); break;
+      case gc_stat_sweeping: assert(stat == gc_stat_none); break;
     }
 #endif
     objspace->flags.stat = stat;

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

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