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 20, 2023
1 parent a8ef873 commit 5deb25f
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 @@ -3368,7 +3368,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 5deb25f

Please sign in to comment.