aboutsummaryrefslogtreecommitdiffstats
path: root/gc.rb
diff options
context:
space:
mode:
Diffstat (limited to 'gc.rb')
-rw-r--r--gc.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/gc.rb b/gc.rb
index 881b8659ce..dd5781b603 100644
--- a/gc.rb
+++ b/gc.rb
@@ -26,17 +26,16 @@ module GC
#
# Use full_mark: false to perform a minor GC.
# Use immediate_sweep: false to defer sweeping (use lazy sweep).
- # Use compact: true to compact the heap (it implies a full mark and sweep).
#
# Note: These keyword arguments are implementation and version dependent. They
# are not guaranteed to be future-compatible, and may be ignored if the
# underlying implementation does not support them.
- def self.start full_mark: true, immediate_mark: true, immediate_sweep: true, compact: false
- __builtin_gc_start_internal full_mark, immediate_mark, immediate_sweep, compact
+ def self.start full_mark: true, immediate_mark: true, immediate_sweep: true
+ __builtin_gc_start_internal full_mark, immediate_mark, immediate_sweep
end
def garbage_collect full_mark: true, immediate_mark: true, immediate_sweep: true
- __builtin_gc_start_internal full_mark, immediate_mark, immediate_sweep, false
+ __builtin_gc_start_internal full_mark, immediate_mark, immediate_sweep
end
# call-seq:
@@ -189,7 +188,7 @@ end
module ObjectSpace
def garbage_collect full_mark: true, immediate_mark: true, immediate_sweep: true
- __builtin_gc_start_internal full_mark, immediate_mark, immediate_sweep, false
+ __builtin_gc_start_internal full_mark, immediate_mark, immediate_sweep
end
module_function :garbage_collect