1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

fix conditon of vm_cc_invalidated_p()

vm_cc_invalidated_p() returns false when the cme is *NOT*
invalidated.
This commit is contained in:
Koichi Sasada 2021-01-19 02:47:04 +09:00
parent 4886535ab2
commit a7d933e502
Notes: git 2021-01-19 14:17:04 +09:00

View file

@ -360,7 +360,7 @@ vm_cc_markable(const struct rb_callcache *cc)
static inline bool
vm_cc_invalidated_p(const struct rb_callcache *cc)
{
if (cc->klass && METHOD_ENTRY_INVALIDATED(vm_cc_cme(cc))) {
if (cc->klass && !METHOD_ENTRY_INVALIDATED(vm_cc_cme(cc))) {
return false;
}
else {