summaryrefslogtreecommitdiff
path: root/vm_method.c
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2022-04-04 12:24:06 -0400
committerJean Boussier <jean.boussier@gmail.com>2022-04-04 20:41:05 +0200
commit42000664be43f8c70322557703003b9141cfb28f (patch)
treed9e7a2366271070894e10c3bbe122745e5270505 /vm_method.c
parentea9c09a92c770e9e3cb0f5ceafd42c8407836f7e (diff)
Bring back RubyVM.stat(:global_constant_state)
This was removed as part of [Feature #18589]. But some applications were relying on this behavior. So bringing this back to make it better for backward compatibility going forward.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5758
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vm_method.c b/vm_method.c
index 1f472efb91..81e88a32c1 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -147,6 +147,7 @@ rb_clear_constant_cache_for_id(ID id)
}
rb_yjit_constant_state_changed();
+ ruby_vm_global_constant_state++;
}
static void