mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-15 08:47:35 +02:00
Only preemtively grow small obj heaps
This commit is contained in:
parent
f8ddd4909a
commit
be9d68c3f1
1 changed files with 1 additions and 1 deletions
2
gc.c
2
gc.c
|
@ -1077,7 +1077,7 @@ void gc_collector_sweep()
|
|||
}
|
||||
|
||||
// TODO: this loop only includes smallest 2 heaps, is that sufficient??
|
||||
for (heap_type = 0; heap_type < 4; heap_type++) {
|
||||
for (heap_type = 0; heap_type < 2; heap_type++) {
|
||||
while ( ck_pr_load_ptr(&(m->cached_heap_free_sizes[heap_type])) <
|
||||
(ck_pr_load_ptr(&(m->cached_heap_total_sizes[heap_type])) * GC_FREE_THRESHOLD)) {
|
||||
#if GC_DEBUG_TRACE
|
||||
|
|
Loading…
Add table
Reference in a new issue