From b8e4bea7806f481efab42f8d88ecba783c709042 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Wed, 5 Jun 2019 23:39:17 +1200 Subject: Track how stack was allocated for `cont_free`. --- thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thread.c') 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); -- cgit v1.2.3