Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
GC.stress
() -> (::Integer | bool)
GC.stress → integer, true, or false
gc.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/gc.rb, line 74
def self.stress
Primitive.gc_stress_get
end
Returns the current status of GC stress mode.