Skip to content

Commit

Permalink
disable other heuristics to trigger full heap gc
Browse files Browse the repository at this point in the history
  • Loading branch information
qinsoon committed Mar 4, 2024
1 parent abab4ba commit f1185aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2724,6 +2724,10 @@ static int _jl_gc_collect(jl_ptls_t ptls, jl_gc_collection_t collection)
sweep_full = 1;
recollect = 1;
}
if (jl_options.fixed_heap_size) {
// For fixed heap size, do not trigger full sweep for any other heuristics
sweep_full = 0;
}
if (next_sweep_full) {
next_sweep_full = 0;
sweep_full = 1;
Expand Down

0 comments on commit f1185aa

Please sign in to comment.