mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Convert empty fixed-size page to bump&pop
This commit is contained in:
parent
e78a3e29bf
commit
f8b409a8b9
1 changed files with 3 additions and 3 deletions
6
gc.c
6
gc.c
|
@ -657,9 +657,9 @@ gc_heap *gc_sweep_fixed_size(gc_heap * h, int heap_type, gc_thread_data *thd)
|
|||
rv = NULL; // Let caller know heap needs to be freed
|
||||
} else {
|
||||
// Convert back to bump&pop
|
||||
// h->remaining = h->size - (h->size % h->block_size);
|
||||
// h->data_end = h->data + h->remaining;
|
||||
// h->free_list = NULL; // No free lists with bump&pop
|
||||
h->remaining = h->size - (h->size % h->block_size);
|
||||
h->data_end = h->data + h->remaining;
|
||||
h->free_list = NULL; // No free lists with bump&pop
|
||||
}
|
||||
} else {
|
||||
//(thd->heap->heap[heap_type])->num_unswept_children--;
|
||||
|
|
Loading…
Add table
Reference in a new issue