diff options
Diffstat (limited to 'tool/lib/envutil.rb')
-rw-r--r-- | tool/lib/envutil.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/lib/envutil.rb b/tool/lib/envutil.rb index e47523a24b..9be0aac479 100644 --- a/tool/lib/envutil.rb +++ b/tool/lib/envutil.rb @@ -245,9 +245,9 @@ module EnvUtil end module_function :under_gc_stress - def under_gc_compact_stress(&block) + def under_gc_compact_stress(val = :empty, &block) auto_compact = GC.auto_compact - GC.auto_compact = true + GC.auto_compact = val under_gc_stress(&block) ensure GC.auto_compact = auto_compact |