summaryrefslogtreecommitdiff
path: root/gc.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-12-18 12:44:28 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-12-18 20:17:43 +0900
commit9abaf00c070d00d880e05182bc1f0fba3eba8231 (patch)
tree255145dd1dfa3b2958bca4f885447a0baf53881b /gc.rb
parentba1d1522d35a7dd2595603ead57cd0fa8b21ba8b (diff)
[DOC] documents of aliased methods
Diffstat (limited to 'gc.rb')
-rw-r--r--gc.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/gc.rb b/gc.rb
index c3b104454c..c9c985b994 100644
--- a/gc.rb
+++ b/gc.rb
@@ -39,6 +39,7 @@ module GC
Primitive.gc_start_internal full_mark, immediate_mark, immediate_sweep, false
end
+ # Alias of GC.start
def garbage_collect full_mark: true, immediate_mark: true, immediate_sweep: true
Primitive.gc_start_internal full_mark, immediate_mark, immediate_sweep, false
end
@@ -322,6 +323,7 @@ module GC
end
module ObjectSpace
+ # Alias of GC.start
def garbage_collect full_mark: true, immediate_mark: true, immediate_sweep: true
Primitive.gc_start_internal full_mark, immediate_mark, immediate_sweep, false
end