Skip to content

Commit

Permalink
Correct GC bug (usage of not_freed_enough)
Browse files Browse the repository at this point in the history
  • Loading branch information
kpamnany committed Feb 13, 2024
1 parent ba5345f commit 40e0363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3657,7 +3657,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;
Expand Down

0 comments on commit 40e0363

Please sign in to comment.