Skip to content

Commit

Permalink
fix conditon of vm_cc_invalidated_p()
Browse files Browse the repository at this point in the history
vm_cc_invalidated_p() returns false when the cme is *NOT*
invalidated.
  • Loading branch information
ko1 committed Jan 19, 2021
1 parent 4886535 commit a7d933e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vm_callinfo.h
Expand Up @@ -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 {
Expand Down

0 comments on commit a7d933e

Please sign in to comment.