Skip to content

Commit

Permalink
Make the GC less greedy
Browse files Browse the repository at this point in the history
  • Loading branch information
gbaraldi authored and d-netto committed Jun 27, 2023
1 parent 6f26e4f commit c47d8aa
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 @@ -3303,7 +3303,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) {
int64_t tot = 2 * (live_bytes + gc_num.allocd) / 3;
int64_t tot = (live_bytes + gc_num.allocd) / 2;
if (gc_num.interval > tot) {
gc_num.interval = tot;
last_long_collect_interval = tot;
Expand Down

0 comments on commit c47d8aa

Please sign in to comment.