summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2019-07-19 16:03:47 +1200
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2019-07-19 16:03:47 +1200
commit547f574b639cd8586568ebb8570c51faf102c313 (patch)
treec5180eea5eacf3c4e3ee340cf6e865b1a5cc9b92 /vm.c
parente14f5762c532241706ad5bd8f81b520c46d97654 (diff)
downloadbundler-547f574b639cd8586568ebb8570c51faf102c313.tar.gz
In some situations, `vm_stack` can be NULL, but `cfp` is valid.
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/vm.c b/vm.c
index 7cebff352c..86b0e6075f 100644
--- a/vm.c
+++ b/vm.c
@@ -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 */