aboutsummaryrefslogtreecommitdiffstats
path: root/cont.c
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2019-07-19 11:32:40 +1200
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2019-07-19 11:32:40 +1200
commit8ca32020b03a4f3e69c8f0b15e015eb7ad5d8e05 (patch)
tree5aecb425466dfc702a0356003e0c755f1ead21e9 /cont.c
parentc8ee44f44c0c7d333a33c62c811d1d0cdbc3554a (diff)
downloadruby-8ca32020b03a4f3e69c8f0b15e015eb7ad5d8e05.tar.gz
Revert "Ensure cfp is initialized to NULL."
This reverts commit d7fdf45a4ae1bcb6fac30a24b025d4f20149ba0a.
Diffstat (limited to 'cont.c')
-rw-r--r--cont.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/cont.c b/cont.c
index 984733db6e..c0be42bffc 100644
--- a/cont.c
+++ b/cont.c
@@ -845,8 +845,6 @@ cont_mark(void *ptr)
RUBY_MARK_ENTER("cont");
rb_gc_mark_no_pin(cont->value);
- // Don't try to scan the vm_stack unless it's initialized.
- // @sa cont_init, fiber_prepare_stack
if (cont->saved_ec.cfp) {
rb_execution_context_mark(&cont->saved_ec);
}
@@ -1085,10 +1083,6 @@ cont_init(rb_context_t *cont, rb_thread_t *th)
{
/* save thread context */
cont_save_thread(cont, th);
-
- // cfp is not valid until stack is initialized.
- cont->saved_ec.cfp = NULL;
-
cont->saved_ec.thread_ptr = th;
cont->saved_ec.local_storage = NULL;
cont->saved_ec.local_storage_recursive_hash = Qnil;