aboutsummaryrefslogtreecommitdiffstats
path: root/vm_core.h
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2022-05-24 16:39:45 +0900
committerKoichi Sasada <ko1@atdot.net>2022-05-24 17:50:49 +0900
commit08cee2bf804d22dc51002b0df023aea7ec044d8d (patch)
tree9e9d8e959858bec1c0588f939e8c8be4ef9dc3b4 /vm_core.h
parent78785fb99041521fc5da01ffa6ab3f4f3936ce06 (diff)
downloadruby-08cee2bf804d22dc51002b0df023aea7ec044d8d.tar.gz
altstack is native thread's attr
Move th->altstack to th->nt->altstack.
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/vm_core.h b/vm_core.h
index 58fb1e7e3b..2fca0aecd2 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -101,9 +101,6 @@ extern int ruby_assert_critical_section_entered;
#include "vm_opts.h"
#include "ruby/thread_native.h"
-#include THREAD_IMPL_H
-
-#define RUBY_VM_THREAD_MODEL 2
/*
* implementation selector of get_insn_info algorithm
@@ -162,6 +159,9 @@ void *rb_register_sigaltstack(void *);
# define RB_ALTSTACK(var) (0)
#endif
+#include THREAD_IMPL_H
+#define RUBY_VM_THREAD_MODEL 2
+
/*****************/
/* configuration */
/*****************/
@@ -1072,10 +1072,6 @@ typedef struct rb_thread_struct {
VALUE name;
struct rb_ext_config ext_config;
-
-#ifdef USE_SIGALTSTACK
- void *altstack;
-#endif
} rb_thread_t;
static inline unsigned int