aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2019-06-20 14:16:08 +1200
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2019-06-20 14:16:08 +1200
commit15c4f6aed29b4f9f8d2c911548ac87756239b592 (patch)
tree170f7f15e862c683ce76b9b26217342480d8908c /thread.c
parent199310997f40e0989f218d109b56d2e592494791 (diff)
downloadruby-15c4f6aed29b4f9f8d2c911548ac87756239b592.tar.gz
Skip `rb_ec_clear_vm_stack` for now.
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/thread.c b/thread.c
index 8953c270bb..df583266eb 100644
--- a/thread.c
+++ b/thread.c
@@ -599,8 +599,11 @@ 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;
- // The vm_stack is `alloca`ed on the thread stack, so it's gone too:
- rb_ec_clear_vm_stack(th->ec);
+ // 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);
+ }
}
static void