diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | gc.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2015-04-24 Kaz Kylheku <kaz@kylheku.com> + + * gc.c (gc): Minor off-by-one: compare gc_counter to FULL_GC_INTERVAL + rather than FULL_GC_INTERVAL - 1, since it is pre-incremented. + 2015-04-22 Kaz Kylheku <kaz@kylheku.com> Switch to in-tree mpi directory. @@ -665,7 +665,7 @@ void gc(void) printf("sweep: freed %d full_gc == %d exhausted == %d\n", (int) swept, full_gc, exhausted); #endif - if (++gc_counter >= FULL_GC_INTERVAL - 1) { + if (++gc_counter >= FULL_GC_INTERVAL) { full_gc_next_time = 1; gc_counter = 0; } |