Skip to content

Commit

Permalink
In some situations, vm_stack can be NULL, but cfp is valid.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jul 19, 2019
1 parent e14f576 commit 547f574
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions vm.c
Expand Up @@ -2463,8 +2463,6 @@ rb_execution_context_update(const rb_execution_context_t *ec)

cfp = RUBY_VM_PREVIOUS_CONTROL_FRAME(cfp);
}
} else {
VM_ASSERT(!ec->cfp);
}
}

Expand Down Expand Up @@ -2497,8 +2495,6 @@ rb_execution_context_mark(const rb_execution_context_t *ec)

cfp = RUBY_VM_PREVIOUS_CONTROL_FRAME(cfp);
}
} else {
VM_ASSERT(!ec->cfp);
}

/* mark machine stack */
Expand Down

0 comments on commit 547f574

Please sign in to comment.