We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e1759c commit a599ed4Copy full SHA for a599ed4
src/gc.c
@@ -3267,8 +3267,10 @@ static int _jl_gc_collect(jl_ptls_t ptls, jl_gc_collection_t collection)
3267
3268
3269
// If the live data outgrows the suggested max_total_memory
3270
- // we keep going with minimum intervals and full gcs until
3271
- // 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) {
3272
+ sweep_full = 1;
3273
+ }
3274
if (gc_sweep_always_full) {
3275
sweep_full = 1;
3276
}
0 commit comments