We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 231407c commit b934f98Copy full SHA for b934f98
gc.rb
@@ -66,11 +66,13 @@ def self.enable
66
# call-seq:
67
# GC.disable -> true or false
68
#
69
- # Disables garbage collection, returning +true+ if garbage
70
- # collection was already disabled.
+ # Disables garbage collection (but GC.start remains potent):
+ # returns whether garbage collection was already disabled.
71
+ #
72
+ # GC.enable
73
+ # GC.disable # => false
74
+ # GC.disable # => true
75
- # GC.disable #=> false
- # GC.disable #=> true
76
def self.disable
77
Primitive.gc_disable
78
end
0 commit comments