In some situations, vm_stack can be NULL, but cfp is valid.

This commit is contained in:
Samuel Williams 2019-07-19 16:03:47 +12:00
parent e14f5762c5
commit 547f574b63
No known key found for this signature in database
GPG Key ID: A0765423A44728FB

4
vm.c
View File

@ -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);
}
}
@ -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 */