Skip to content

Commit 137611b

Browse files
committed
Adding stock gc trigger as default
1 parent b1f61bb commit 137611b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/mmtk-gc.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -425,11 +425,8 @@ void jl_gc_init(void)
425425
// TODO: We just assume mark threads means GC threads, and ignore the number of concurrent sweep threads.
426426
// If the two values are the same, we can use either. Otherwise, we need to be careful.
427427
uintptr_t gcthreads = jl_options.ngcthreads;
428-
if (max_size_def != NULL || (max_size_gb != NULL && (min_size_def == NULL && min_size_gb == NULL))) {
429-
mmtk_gc_init(0, max_heap_size, gcthreads, &mmtk_upcalls, (sizeof(jl_taggedvalue_t)), jl_buff_tag);
430-
} else {
431-
mmtk_gc_init(min_heap_size, max_heap_size, gcthreads, &mmtk_upcalls, (sizeof(jl_taggedvalue_t)), jl_buff_tag);
432-
}
428+
// use Julia's GC heap resizing/gc trigger heuristics as default
429+
mmtk_gc_init(0, 0, gcthreads, &mmtk_upcalls, (sizeof(jl_taggedvalue_t)), jl_buff_tag);
433430
}
434431

435432
// allocation wrappers that track allocation and let collection run

0 commit comments

Comments
 (0)