aboutsummaryrefslogtreecommitdiffstats
path: root/gc.rb
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2021-11-25 11:00:38 -0500
committerPeter Zhu <peter@peterzhu.ca>2021-11-25 11:01:50 -0500
commitb0bbcaedc7c855be1df8c3bbbfd7b80424905047 (patch)
treeb4014c8c7e22fef87fea8ceab7cb7c1030faf734 /gc.rb
parent6157619bb68e4307cdf065cb73d5bfcec30d042d (diff)
downloadruby-b0bbcaedc7c855be1df8c3bbbfd7b80424905047.tar.gz
Revert "Add GC.stat_size_pool to get stats for a size pool"
This reverts commit 6157619bb68e4307cdf065cb73d5bfcec30d042d. We'll wait for comments in the open ticket: https://bugs.ruby-lang.org/issues/18364
Diffstat (limited to 'gc.rb')
-rw-r--r--gc.rb18
1 files changed, 0 insertions, 18 deletions
diff --git a/gc.rb b/gc.rb
index 47beab8cbc..7a60710f66 100644
--- a/gc.rb
+++ b/gc.rb
@@ -196,24 +196,6 @@ module GC
Primitive.gc_stat hash_or_key
end
- # :nodoc:
- # call-seq:
- # GC.stat_size_pool(size_pool_idx) -> Hash
- # GC.stat_size_pool(size_pool_idx, hash) -> Hash
- # GC.stat_size_pool(size_pool_idx, :key) -> Numeric
- #
- # Returns a Hash containing information about a size pool in the GC.
- #
- # The contents of the hash are implementation specific and may be changed in
- # the future.
- #
- # If the optional argument, hash, is given, it is overwritten and returned.
- #
- # This method is only expected to work on C Ruby.
- def self.stat_size_pool size_pool_idx, hash_or_key = nil
- Primitive.gc_stat_size_pool size_pool_idx, hash_or_key
- end
-
# call-seq:
# GC.latest_gc_info -> {:gc_by=>:newobj}
# GC.latest_gc_info(hash) -> hash