mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[DOC] Tweaks for GC.disable
This commit is contained in:
parent
231407c251
commit
b934f989b9
1 changed files with 6 additions and 4 deletions
10
gc.rb
10
gc.rb
|
@ -66,11 +66,13 @@ module GC
|
|||
# call-seq:
|
||||
# GC.disable -> true or false
|
||||
#
|
||||
# Disables garbage collection, returning +true+ if garbage
|
||||
# collection was already disabled.
|
||||
# Disables garbage collection (but GC.start remains potent):
|
||||
# returns whether garbage collection was already disabled.
|
||||
#
|
||||
# GC.enable
|
||||
# GC.disable # => false
|
||||
# GC.disable # => true
|
||||
#
|
||||
# GC.disable #=> false
|
||||
# GC.disable #=> true
|
||||
def self.disable
|
||||
Primitive.gc_disable
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue