From 07f055bb132f21fd71af2720382ad8d2e8f69e47 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 11 May 2021 13:30:40 -0700 Subject: Revert "Filling cache values on cvar write" This reverts commit 08de37f9fa3469365e6b5c964689ae2bae0eb9f3. This reverts commit e8ae922b62adb00a80d3d4c49f7d7b0e6026eaba. --- vm.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'vm.c') diff --git a/vm.c b/vm.c index 14c125eef2..ea8b21e7a5 100644 --- a/vm.c +++ b/vm.c @@ -405,7 +405,6 @@ unsigned int ruby_vm_event_local_num; rb_serial_t ruby_vm_global_constant_state = 1; rb_serial_t ruby_vm_class_serial = 1; -rb_serial_t ruby_vm_global_cvar_state = 1; static const struct rb_callcache vm_empty_cc = { .flags = T_IMEMO | (imemo_callcache << FL_USHIFT) | VM_CALLCACHE_UNMARKABLE, @@ -485,7 +484,7 @@ rb_dtrace_setup(rb_execution_context_t *ec, VALUE klass, ID id, static VALUE vm_stat(int argc, VALUE *argv, VALUE self) { - static VALUE sym_global_constant_state, sym_class_serial, sym_global_cvar_state; + static VALUE sym_global_constant_state, sym_class_serial; VALUE arg = Qnil; VALUE hash = Qnil, key = Qnil; @@ -506,7 +505,6 @@ vm_stat(int argc, VALUE *argv, VALUE self) #define S(s) sym_##s = ID2SYM(rb_intern_const(#s)) S(global_constant_state); S(class_serial); - S(global_cvar_state); #undef S } @@ -518,7 +516,6 @@ vm_stat(int argc, VALUE *argv, VALUE self) SET(global_constant_state, ruby_vm_global_constant_state); SET(class_serial, ruby_vm_class_serial); - SET(global_cvar_state, ruby_vm_global_cvar_state); #undef SET if (!NIL_P(key)) { /* matched key should return above */ -- cgit v1.2.3