ruby-changes:64954
From: Koichi <ko1@a...>
Date: Tue, 19 Jan 2021 14:16:59 +0900 (JST)
Subject: [ruby-changes:64954] a7d933e502 (master): fix conditon of vm_cc_invalidated_p()
https://git.ruby-lang.org/ruby.git/commit/?id=a7d933e502 From a7d933e5021d1028d64a055b6dcf8631ea6a52c3 Mon Sep 17 00:00:00 2001 From: Koichi Sasada <ko1@a...> 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. 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) https://github.com/ruby/ruby/blob/trunk/vm_callinfo.h#L360 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 v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/