diff options
author | charliesome <charliesome@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-04 16:53:20 +0000 |
---|---|---|
committer | charliesome <charliesome@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-04 16:53:20 +0000 |
commit | 1abfdb45858df355db3cb8eb11f50dc016c91c98 (patch) | |
tree | 0180ec0b6175a17d8c842c5f65648f2a263b3acd /vm_insnhelper.c | |
parent | 149fd43e1fac8818596bff60ce3f8c1d30c1b67f (diff) | |
download | ruby-1abfdb45858df355db3cb8eb11f50dc016c91c98.tar.gz |
* vm_insnhelper.c (vm_search_method): no need to check klass == ci->klass
in method cache guard - class sequence number has the same uniqueness
guarantees
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index a6166596b6..ed4fe213bf 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -848,7 +848,7 @@ vm_search_method(rb_call_info_t *ci, VALUE recv) VALUE klass = CLASS_OF(recv); #if OPT_INLINE_METHOD_CACHE - if (LIKELY(GET_VM_STATE_VERSION() == ci->vmstat && RCLASS_EXT(klass)->seq == ci->seq && klass == ci->klass)) { + if (LIKELY(GET_VM_STATE_VERSION() == ci->vmstat && RCLASS_EXT(klass)->seq == ci->seq)) { /* cache hit! */ return; } |