summaryrefslogtreecommitdiff
path: root/gc.rb
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2020-11-24 10:45:12 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2020-11-24 12:38:05 -0800
commit490b57783d80f0c5f7882c66d9fb6aa02713c9a5 (patch)
tree21fecaff58ee1d3e30d5ea777e1ee41c6b2473a9 /gc.rb
parentb4dd7310ca94982f5ddbe21d498a7d5fbecb1f18 (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
Notes: Merged: https://github.com/ruby/ruby/pull/3809
Diffstat (limited to 'gc.rb')
-rw-r--r--gc.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/gc.rb b/gc.rb
index d2b0d8e86e..4e0faaf00d 100644
--- a/gc.rb
+++ b/gc.rb
@@ -199,8 +199,7 @@ module GC
end
def self.compact
- Primitive.gc_start_internal true, true, true, true
- Primitive.gc_compact_stats
+ Primitive.gc_compact
end
# call-seq: