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 authored and d-netto committed Apr 5, 2024
1 parent c3155d6 commit d9a95fc
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 @@ -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;
Expand Down

0 comments on commit d9a95fc

Please sign in to comment.