ruby-changes:30757
From: charliesome <ko1@a...>
Date: Thu, 5 Sep 2013 01:53:26 +0900 (JST)
Subject: [ruby-changes:30757] charliesome:r42836 (trunk): * vm_insnhelper.c (vm_search_method): no need to check klass == ci->klass
charliesome 2013-09-05 01:53:20 +0900 (Thu, 05 Sep 2013) New Revision: 42836 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42836 Log: * 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 Modified files: trunk/vm_insnhelper.c Index: vm_insnhelper.c =================================================================== --- vm_insnhelper.c (revision 42835) +++ vm_insnhelper.c (revision 42836) @@ -848,7 +848,7 @@ vm_search_method(rb_call_info_t *ci, VAL https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L848 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; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/