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 6bbb6ed commit 72b4833Copy full SHA for 72b4833
vm.c
@@ -2078,6 +2078,12 @@ ruby_vm_constant_state_version()
2078
return ULONG2NUM(ruby_constant_global_state_version);
2079
}
2080
2081
+static VALUE
2082
+ruby_vm_method_state_version()
2083
+{
2084
+ return ULONG2NUM(ruby_method_global_state_version);
2085
+}
2086
+
2087
void
2088
Init_VM(void)
2089
{
@@ -2092,6 +2098,7 @@ Init_VM(void)
2092
2098
2093
2099
/* method cache metrics */
2094
2100
rb_define_singleton_method(rb_cRubyVM, "constant_state_version", ruby_vm_constant_state_version, 0);
2101
+ rb_define_singleton_method(rb_cRubyVM, "method_state_version", ruby_vm_method_state_version, 0);
2095
2102
2096
2103
/* ::VM::FrozenCore */
2097
2104
fcore = rb_class_new(rb_cBasicObject);
0 commit comments