From a7d933e5021d1028d64a055b6dcf8631ea6a52c3 Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Tue, 19 Jan 2021 02:47:04 +0900 Subject: fix conditon of vm_cc_invalidated_p() vm_cc_invalidated_p() returns false when the cme is *NOT* invalidated. --- vm_callinfo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm_callinfo.h b/vm_callinfo.h index 1fe76eb902..7fc0a93806 100644 --- a/vm_callinfo.h +++ b/vm_callinfo.h @@ -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 { -- cgit v1.2.3