From 72b4833bc05da3dfb3b04a9b93d01e68d12db36e Mon Sep 17 00:00:00 2001 From: Charlie Somerville Date: Thu, 24 Oct 2013 15:31:16 -0400 Subject: [PATCH] expose method state version too --- vm.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vm.c b/vm.c index b7f8c64ea2c73d..62cd0fd782be4f 100644 --- a/vm.c +++ b/vm.c @@ -2078,6 +2078,12 @@ ruby_vm_constant_state_version() return ULONG2NUM(ruby_constant_global_state_version); } +static VALUE +ruby_vm_method_state_version() +{ + return ULONG2NUM(ruby_method_global_state_version); +} + void Init_VM(void) { @@ -2092,6 +2098,7 @@ Init_VM(void) /* method cache metrics */ rb_define_singleton_method(rb_cRubyVM, "constant_state_version", ruby_vm_constant_state_version, 0); + rb_define_singleton_method(rb_cRubyVM, "method_state_version", ruby_vm_method_state_version, 0); /* ::VM::FrozenCore */ fcore = rb_class_new(rb_cBasicObject); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy