Skip to content

Commit

Permalink
Revert "Run full GC when under very high memory pressure. (#2421)" (#…
Browse files Browse the repository at this point in the history
…2469)

This reverts commit 84bb117.
  • Loading branch information
maleadt authored Aug 19, 2024
1 parent 69043ee commit 3091021
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/memory.jl
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function maybe_collect(will_block::Bool=false)

# finally, call the GC
pre_gc_live = stats.live
gc_time = Base.@elapsed GC.gc(pressure > 0.9 ? true : false)
gc_time = Base.@elapsed GC.gc(false)
post_gc_live = stats.live
memory_freed = pre_gc_live - post_gc_live
Base.@atomic stats.last_freed = memory_freed
Expand Down

0 comments on commit 3091021

Please sign in to comment.