From 08cee2bf804d22dc51002b0df023aea7ec044d8d Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Tue, 24 May 2022 16:39:45 +0900 Subject: altstack is native thread's attr Move th->altstack to th->nt->altstack. --- thread_pthread.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'thread_pthread.h') diff --git a/thread_pthread.h b/thread_pthread.h index 8e8c1eb43d..ebca71b5cd 100644 --- a/thread_pthread.h +++ b/thread_pthread.h @@ -50,6 +50,10 @@ struct rb_native_thread { rb_nativethread_cond_t intr; /* th->interrupt_lock */ rb_nativethread_cond_t readyq; /* use sched->lock */ } cond; + +#ifdef USE_SIGALTSTACK + void *altstack; +#endif }; #undef except -- cgit v1.2.1