summaryrefslogtreecommitdiffstats
path: root/insns.def
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-15 15:31:43 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-15 15:31:43 +0000
commitda99f9527e8eb437fea7928c6729a3bdaef088d9 (patch)
treee07f00ae40ad19dc6d65516253d2ed6cc85a3e48 /insns.def
parent924f02f6128ec011c9704d9a9d267e57c76d600b (diff)
downloadruby-da99f9527e8eb437fea7928c6729a3bdaef088d9.tar.gz
ruby-da99f9527e8eb437fea7928c6729a3bdaef088d9.tar.xz
ruby-da99f9527e8eb437fea7928c6729a3bdaef088d9.zip
* vm.c (rb_vm_inc_const_missing_count, ruby_vm_const_missing_count):
added. * vm_insnhelper.h: ditto. * variable.c (rb_const_get_0), insns.def: Constants should not be cached if const_missing is called. [ruby-core:21059] [Bug #967] * bootstraptest/test_class.rb: add a test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'insns.def')
-rw-r--r--insns.def3
1 files changed, 2 insertions, 1 deletions
diff --git a/insns.def b/insns.def
index 669c491ed..2ffd0ea78 100644
--- a/insns.def
+++ b/insns.def
@@ -1222,7 +1222,8 @@ setinlinecache
IC ic = GET_CONST_INLINE_CACHE(dst);
ic->ic_value = val;
- ic->ic_vmstat = GET_VM_STATE_VERSION();
+ ic->ic_vmstat = GET_VM_STATE_VERSION() - ruby_vm_const_missing_count;
+ ruby_vm_const_missing_count = 0;
}
/**