Skip to content

Commit

Permalink
[release 1.10] trigger a full sweep if beyond max total memory (#51843)
Browse files Browse the repository at this point in the history
Otherwise `--heap-size-hint` will become a no-op.

Likely a merge bug from #51661.
  • Loading branch information
d-netto authored Oct 24, 2023
1 parent 4e1759c commit a599ed4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3267,8 +3267,10 @@ static int _jl_gc_collect(jl_ptls_t ptls, jl_gc_collection_t collection)


// If the live data outgrows the suggested max_total_memory
// we keep going with minimum intervals and full gcs until
// we either free some space or get an OOM error.
// we keep going with full gcs until we either free some space or get an OOM error.
if (live_bytes > max_total_memory) {
sweep_full = 1;
}
if (gc_sweep_always_full) {
sweep_full = 1;
}
Expand Down

0 comments on commit a599ed4

Please sign in to comment.