From 1abfdb45858df355db3cb8eb11f50dc016c91c98 Mon Sep 17 00:00:00 2001 From: charliesome Date: Wed, 4 Sep 2013 16:53:20 +0000 Subject: * 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 --- vm_insnhelper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm_insnhelper.c') 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; } -- cgit v1.2.3