Do a better job of flagging free fixed-size pages

This commit is contained in:
Justin Ethier 2018-08-03 13:24:57 -04:00
parent ce3ba0986f
commit e383b45381

2
gc.c
View file

@ -644,11 +644,11 @@ gc_heap *gc_sweep_fixed_size(gc_heap * h, int heap_type, gc_thread_data *thd)
h->free_size += h->block_size;
} else {
//printf("sweep block is still used remaining=%d p = %p\n", remaining, p);
heap_is_empty = 0;
}
//next->next = (gc_free_list *)(((char *) next) + h->block_size);
//next = next->next;
remaining -= h->block_size;
heap_is_empty = 0;
}
}
// Free the heap page if possible.