aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2021-01-19 02:47:04 +0900
committerKoichi Sasada <ko1@atdot.net>2021-01-19 14:16:37 +0900
commita7d933e5021d1028d64a055b6dcf8631ea6a52c3 (patch)
tree33500f24635054e4d6396d892d3610e44a1b23db
parent4886535ab2671fb6e7edb438c95c2c9b03ffba29 (diff)
downloadruby-a7d933e5021d1028d64a055b6dcf8631ea6a52c3.tar.gz
fix conditon of vm_cc_invalidated_p()
vm_cc_invalidated_p() returns false when the cme is *NOT* invalidated.
-rw-r--r--vm_callinfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_callinfo.h b/vm_callinfo.h
index 1fe76eb..7fc0a93 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 {