mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-18 21:29:18 +02:00
Do a better job of flagging free fixed-size pages
This commit is contained in:
parent
ce3ba0986f
commit
e383b45381
1 changed files with 1 additions and 1 deletions
2
gc.c
2
gc.c
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue