From 912aeb37d8264330a62c55441b33cffe3f209d13 Mon Sep 17 00:00:00 2001 From: Diogo Netto <61364108+d-netto@users.noreply.github.com> Date: Sun, 7 Apr 2024 14:51:37 -0300 Subject: [PATCH] Correct GC bug (usage of `not_freed_enough`) (#142) Co-authored-by: K Pamnany --- src/gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gc.c b/src/gc.c index 464cad4044080..51ad496d072b2 100644 --- a/src/gc.c +++ b/src/gc.c @@ -3643,7 +3643,7 @@ static int _jl_gc_collect(jl_ptls_t ptls, jl_gc_collection_t collection) if (collection == JL_GC_AUTO) { //If we aren't freeing enough or are seeing lots and lots of pointers let it increase faster - if (!not_freed_enough || large_frontier) { + if (not_freed_enough || large_frontier) { int64_t tot = 2 * (live_bytes + gc_num.since_sweep) / 3; if (gc_num.interval > tot) { gc_num.interval = tot;