Skip to content

Commit

Permalink
params for vm_ccs_push() should be markable
Browse files Browse the repository at this point in the history
cc and ci should be markable, otherwise it should be a bug.
  • Loading branch information
ko1 committed Jan 18, 2021
1 parent 32780ca commit 195e368
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions vm_insnhelper.c
Original file line number Diff line number Diff line change
Expand Up @@ -1570,12 +1570,8 @@ vm_ccs_create(VALUE klass, const rb_callable_method_entry_t *cme)
static void
vm_ccs_push(VALUE klass, struct rb_class_cc_entries *ccs, const struct rb_callinfo *ci, const struct rb_callcache *cc)
{
if (! vm_cc_markable(cc)) {
return;
}
else if (! vm_ci_markable(ci)) {
return;
}
VM_ASSERT(vm_cc_markable(cc));
VM_ASSERT(vm_ci_markable(ci));

if (UNLIKELY(ccs->len == ccs->capa)) {
if (ccs->capa == 0) {
Expand Down

0 comments on commit 195e368

Please sign in to comment.