diff options
author | Kevin Newton <[email protected]> | 2022-04-04 12:24:06 -0400 |
---|---|---|
committer | Jean Boussier <[email protected]> | 2022-04-04 20:41:05 +0200 |
commit | 42000664be43f8c70322557703003b9141cfb28f (patch) | |
tree | d9e7a2366271070894e10c3bbe122745e5270505 /vm_method.c | |
parent | ea9c09a92c770e9e3cb0f5ceafd42c8407836f7e (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.c | 1 |
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 |