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:
parent
4886535ab2
commit
a7d933e502
Notes:
git
2021-01-19 14:17:04 +09:00
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue