From 42000664be43f8c70322557703003b9141cfb28f Mon Sep 17 00:00:00 2001 From: Kevin Newton Date: Mon, 4 Apr 2022 12:24:06 -0400 Subject: 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. --- vm_method.c | 1 + 1 file changed, 1 insertion(+) (limited to 'vm_method.c') 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 -- cgit v1.2.1