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

ruby-changes:30482

From: ko1 <ko1@a...>
Date: Thu, 15 Aug 2013 17:46:59 +0900 (JST)
Subject: [ruby-changes:30482] ko1:r42561 (trunk): * gc.c (gc_lazy_sweep): remove heap_increment() here because heap_inc

ko1	2013-08-15 17:46:53 +0900 (Thu, 15 Aug 2013)

  New Revision: 42561

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

  Log:
    * gc.c (gc_lazy_sweep): remove heap_increment() here because heap_inc
      may be 0.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 42560)
+++ ChangeLog	(revision 42561)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Aug 15 17:43:15 2013  Koichi Sasada  <ko1@a...>
+
+	* gc.c (gc_lazy_sweep): remove heap_increment() here because heap_inc
+	  may be 0.
+
 Thu Aug 15 16:59:56 2013  NAKAMURA Usaku  <usa@r...>
 
 	* io.c (rb_io_rewind): remove fsync() for Windows to improve the
Index: gc.c
===================================================================
--- gc.c	(revision 42560)
+++ gc.c	(revision 42561)
@@ -859,7 +859,7 @@ heap_increment(rb_objspace_t *objspace) https://github.com/ruby/ruby/blob/trunk/gc.c#L859
     rgengc_report(5, objspace, "heap_increment: heap_inc: %d\n", heap_inc);
 
     if (heap_inc > 0) {
-        heap_assign_slot(objspace);
+	heap_assign_slot(objspace);
 	heap_inc--;
 	return TRUE;
     }
@@ -2389,8 +2389,6 @@ gc_lazy_sweep(rb_objspace_t *objspace) https://github.com/ruby/ruby/blob/trunk/gc.c#L2389
 
     gc_prof_sweep_timer_start(objspace);
 
-    heap_increment(objspace);
-
     slot = objspace->heap.sweep_slots;
 
     while (slot) {

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

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