From 0d63600e4f9d45e9814191e5ca7aecf9ef28a9df Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 28 Jun 2021 15:00:35 -0700 Subject: Partial revert of ceebc7fc98d I'm looking through the places where YJIT needs notifications. It looks like these changes to gc.c and vm_callinfo.h have become unnecessary since 84ab77ba592. This commit just makes the diff against upstream smaller, but otherwise shouldn't change any behavior. --- vm_method.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'vm_method.c') diff --git a/vm_method.c b/vm_method.c index 5260f2d05c..75f38d386d 100644 --- a/vm_method.c +++ b/vm_method.c @@ -115,18 +115,6 @@ rb_vm_mtbl_dump(const char *msg, VALUE klass, ID target_mid) vm_mtbl_dump(klass, target_mid); } -void -rb_vm_cc_invalidate(const struct rb_callcache *cc) -{ - VM_ASSERT(IMEMO_TYPE_P(cc, imemo_callcache)); - VM_ASSERT(cc != vm_cc_empty()); - VM_ASSERT(cc->klass != 0); // should be enable - - *(VALUE *)&cc->klass = 0; - RB_DEBUG_COUNTER_INC(cc_ent_invalidate); -} - - static inline void vm_cme_invalidate(rb_callable_method_entry_t *cme) { -- cgit v1.2.1