diff options
author | Koichi Sasada <ko1@atdot.net> | 2021-01-19 02:47:04 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2021-01-19 14:16:37 +0900 |
commit | a7d933e5021d1028d64a055b6dcf8631ea6a52c3 (patch) | |
tree | 33500f24635054e4d6396d892d3610e44a1b23db /vm_callinfo.h | |
parent | 4886535ab2671fb6e7edb438c95c2c9b03ffba29 (diff) |
fix conditon of vm_cc_invalidated_p()
vm_cc_invalidated_p() returns false when the cme is *NOT*
invalidated.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4091
Diffstat (limited to 'vm_callinfo.h')
-rw-r--r-- | vm_callinfo.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |