aboutsummaryrefslogtreecommitdiffstats
path: root/thread_pthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index 951885ffa0..43766b26ba 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -840,6 +840,7 @@ static void *
thread_start_func_1(void *th_ptr)
{
rb_thread_t *th = th_ptr;
+ RB_ALTSTACK_INIT(void *altstack);
#if USE_THREAD_CACHE
thread_start:
#endif
@@ -868,6 +869,7 @@ thread_start_func_1(void *th_ptr)
}
}
#endif
+ RB_ALTSTACK_FREE(altstack);
return 0;
}