From 7d9d1ed463323fe28f24d0b94212c2cb7ad109bd Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Thu, 20 Jun 2019 14:55:43 +1200 Subject: Don't clear cfp, it causes problems. --- thread.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'thread.c') diff --git a/thread.c b/thread.c index df583266eb..8953c270bb 100644 --- a/thread.c +++ b/thread.c @@ -599,11 +599,8 @@ thread_cleanup_func_before_exec(void *th_ptr) // The thread stack doesn't exist in the forked process: th->ec->machine.stack_start = th->ec->machine.stack_end = NULL; - // Appears to be causing a lot of issues. - if (0) { - // The vm_stack is `alloca`ed on the thread stack, so it's gone too: - rb_ec_clear_vm_stack(th->ec); - } + // The vm_stack is `alloca`ed on the thread stack, so it's gone too: + rb_ec_clear_vm_stack(th->ec); } static void -- cgit v1.2.3