From 2f522b9cc6f3e184404040b12af4486520a73b26 Mon Sep 17 00:00:00 2001 From: charliesome Date: Wed, 4 Sep 2013 05:25:06 +0000 Subject: * class.c, compile.c, eval.c, gc.h, insns.def, internal.h, method.h, variable.c, vm.c, vm_core.c, vm_insnhelper.c, vm_insnhelper.h, vm_method.c: Implement class hierarchy method cache invalidation. [ruby-core:55053] [Feature #8426] [GH-387] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_insnhelper.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'vm_insnhelper.h') diff --git a/vm_insnhelper.h b/vm_insnhelper.h index a25bd1609f..220404cfb5 100644 --- a/vm_insnhelper.h +++ b/vm_insnhelper.h @@ -257,8 +257,7 @@ enum vm_regan_acttype { CALL_METHOD(ci); \ } while (0) -static VALUE ruby_vm_global_state_version = 1; - +#define NEXT_CLASS_SEQUENCE() (++ruby_vm_sequence) #define GET_VM_STATE_VERSION() (ruby_vm_global_state_version) #define INC_VM_STATE_VERSION() do { \ ruby_vm_global_state_version = (ruby_vm_global_state_version + 1); \ -- cgit v1.2.1