summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-15 08:46:53 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-15 08:46:53 +0000
commit5cd2fb2ebbedf5fd0fd12fd3a5d4a90bcbe2dca3 (patch)
treef40bf3af5d56002036a384f470c11cad359e12ec /gc.c
parentbc08992a2e2e13b546f4f9c6e960a7274901ccf6 (diff)
* gc.c (gc_lazy_sweep): remove heap_increment() here because heap_inc
may be 0. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gc.c b/gc.c
index 6cb2594a2c..f7540eb03b 100644
--- a/gc.c
+++ b/gc.c
@@ -859,7 +859,7 @@ heap_increment(rb_objspace_t *objspace)
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)
gc_prof_sweep_timer_start(objspace);
- heap_increment(objspace);
-
slot = objspace->heap.sweep_slots;
while (slot) {