aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2019-06-05 23:39:17 +1200
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2019-06-19 20:39:10 +1200
commitb8e4bea7806f481efab42f8d88ecba783c709042 (patch)
tree923dcff62417a9eed3ff6d855fbf8d3996aa75c4 /thread.c
parent4b3b781c66c48604a013557172540effd929f96a (diff)
downloadruby-b8e4bea7806f481efab42f8d88ecba783c709042.tar.gz
Track how stack was allocated for `cont_free`.
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 f1f9ff82ac..bc2e6c58fb 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_ec_set_vm_stack(th->ec, NULL, 0);
+ rb_fiber_close(th->ec->fiber_ptr);
}
thread_cleanup_func(th, FALSE);
gvl_release(th->vm);