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

ruby-changes:35381

From: ko1 <ko1@a...>
Date: Tue, 9 Sep 2014 12:08:05 +0900 (JST)
Subject: [ruby-changes:35381] ko1:r47463 (trunk): * gc.c (gc_sweep_rest): remove wrong modification of during_gc flag.

ko1	2014-09-09 12:07:46 +0900 (Tue, 09 Sep 2014)

  New Revision: 47463

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

  Log:
    * gc.c (gc_sweep_rest): remove wrong modification of during_gc flag.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 47462)
+++ ChangeLog	(revision 47463)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Sep  9 12:06:03 2014  Koichi Sasada  <ko1@a...>
+
+	* gc.c (gc_sweep_rest): remove wrong modification of during_gc flag.
+
 Tue Sep  9 11:39:41 2014  Koichi Sasada  <ko1@a...>
 
 	* gc.c: pack boolean values into rb_objspace_t::flags with bit fields
Index: gc.c
===================================================================
--- gc.c	(revision 47462)
+++ gc.c	(revision 47463)
@@ -3309,7 +3309,6 @@ gc_sweep_rest(rb_objspace_t *objspace) https://github.com/ruby/ruby/blob/trunk/gc.c#L3309
     rb_heap_t *heap = heap_eden; /* lazy sweep only for eden */
 
     if (is_lazy_sweeping(heap)) {
-	during_gc++;
 	while (is_lazy_sweeping(heap)) {
 	    gc_sweep_step(objspace, heap);
 	}

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

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