aboutsummaryrefslogtreecommitdiffstats
path: root/gc.rb
diff options
context:
space:
mode:
Diffstat (limited to 'gc.rb')
-rw-r--r--gc.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/gc.rb b/gc.rb
index c0459b0beb..e80d6635a7 100644
--- a/gc.rb
+++ b/gc.rb
@@ -256,6 +256,16 @@ module GC
def self.verify_compaction_references(toward: nil, double_heap: false)
Primitive.gc_verify_compaction_references(double_heap, toward == :empty)
end
+
+ # :nodoc:
+ # call-seq:
+ # GC.using_rvargc? -> true or false
+ #
+ # Returns true if using experimental feature Variable Width Allocation, false
+ # otherwise.
+ def self.using_rvargc?
+ GC::INTERNAL_CONSTANTS[:SIZE_POOL_COUNT] > 1
+ end
end
module ObjectSpace