aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2019-06-05 20:52:07 +1200
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2019-06-19 20:39:10 +1200
commit4b3b781c66c48604a013557172540effd929f96a (patch)
tree2baeae988491fe9ae896c8aff1cbc812e3d05d76 /thread.c
parent38791145ebc6890b97ea55ee490084c63b67f3cc (diff)
downloadruby-4b3b781c66c48604a013557172540effd929f96a.tar.gz
Ensure execution context is cleared after thread is finished.
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index e910ccb510..f1f9ff82ac 100644
--- a/thread.c
+++ b/thread.c
@@ -821,7 +821,7 @@ thread_start_func_2(rb_thread_t *th, VALUE *stack_start, VALUE *register_stack_s
rb_threadptr_unlock_all_locking_mutexes(th);
rb_check_deadlock(th->vm);
- // rb_fiber_close(th->ec->fiber_ptr);
+ rb_ec_set_vm_stack(th->ec, NULL, 0);
}
thread_cleanup_func(th, FALSE);
gvl_release(th->vm);