mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
bc08992a2e
commit
5cd2fb2ebb
2 changed files with 6 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Aug 15 17:43:15 2013 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* 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@ruby-lang.org>
|
||||
|
||||
* io.c (rb_io_rewind): remove fsync() for Windows to improve the
|
||||
|
|
4
gc.c
4
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) {
|
||||
|
|
Loading…
Reference in a new issue