diff options
author | Aaron Patterson <[email protected]> | 2020-11-24 10:45:12 -0800 |
---|---|---|
committer | Aaron Patterson <[email protected]> | 2020-11-24 12:38:05 -0800 |
commit | 490b57783d80f0c5f7882c66d9fb6aa02713c9a5 () | |
tree | 21fecaff58ee1d3e30d5ea777e1ee41c6b2473a9 /gc.rb | |
parent | b4dd7310ca94982f5ddbe21d498a7d5fbecb1f18 (diff) |
Disable read barrier on explicit compaction request
We don't need a read barrier when the user calls `GC.compact` because we don't allow allocations during GC, and all references should be "live"
Notes: Merged: https://.com/ruby/ruby/pull/3809
-rw-r--r-- | gc.rb | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -199,8 +199,7 @@ module GC end def self.compact - Primitive.gc_start_internal true, true, true, true - Primitive.gc_compact_stats end # call-seq: |