From 7c7a1c221281cdba1f48d5e42ee2f9af306d27f8 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Wed, 5 Jun 2019 13:53:19 +1200 Subject: Fix handling of vm_stack_size and avoid trying to deallocate it. --- thread_pthread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thread_pthread.c') diff --git a/thread_pthread.c b/thread_pthread.c index 515f13b1a5..5cbe9e041b 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -1157,7 +1157,7 @@ native_thread_create(rb_thread_t *th) } else { pthread_attr_t attr; - const size_t stack_size = th->vm->default_params.thread_machine_stack_size; + const size_t stack_size = th->vm->default_params.thread_machine_stack_size + th->vm->default_params.thread_vm_stack_size; const size_t space = space_size(stack_size); th->ec->machine.stack_maxsize = stack_size - space; -- cgit v1.2.3