summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Patterson <[email protected]>2021-06-28 15:00:35 -0700
committerAlan Wu <[email protected]>2021-10-20 18:19:36 -0400
commit0d63600e4f9d45e9814191e5ca7aecf9ef28a9df ()
tree0e530e121a99288b62e8493e2d4c40846a793216
parentb385f311882be75e81ec9ce7ab74d2368fec1560 (diff)
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.
-rw-r--r--gc.c2
-rw-r--r--vm_callinfo.h11
-rw-r--r--vm_method.c12
3 files changed, 11 insertions, 14 deletions
@@ -2907,7 +2907,7 @@ vm_ccs_free(struct rb_class_cc_entries *ccs, int alive, rb_objspace_t *objspace,
asan_poison_object((VALUE)cc);
}
}
- rb_vm_cc_invalidate(cc);
}
ruby_xfree(ccs->entries);
}
@@ -409,7 +409,16 @@ vm_cc_method_missing_reason_set(const struct rb_callcache *cc, enum method_missi
*(enum method_missing_reason *)&cc->aux_.method_missing_reason = reason;
}
-void rb_vm_cc_invalidate(const struct rb_callcache *cc);
/* calldata */
@@ -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)
{