Skip to content

Commit

Permalink
Correct GC bug (usage of not_freed_enough) (#142)
Browse files Browse the repository at this point in the history
Co-authored-by: K Pamnany <[email protected]>
  • Loading branch information
d-netto and kpamnany authored Apr 7, 2024
1 parent c3155d6 commit 912aeb3
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 912aeb3

Please sign in to comment.