summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-17 02:08:41 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-17 02:08:41 +0000
commite97ac02f8466275732a33f704480c03da722f485 (patch)
treea39fb1712d7a18a31963649e24f36d5f32128e8a /thread.c
parent158c742b51556ff416d2934fcb215ef77e7d0c7e (diff)
vm_insnhelper.c: rb_threadptr_stack_overflow
* vm_insnhelper.c (rb_threadptr_stack_overflow): move from thread.c and integrate with vm_stackoverflow. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/thread.c b/thread.c
index 6c7bb6d1bd..a21ef7ba78 100644
--- a/thread.c
+++ b/thread.c
@@ -2165,20 +2165,6 @@ rb_threadptr_signal_exit(rb_thread_t *th)
#define USE_SIGALTSTACK
#endif
-NORETURN(void ruby_thread_stack_overflow(rb_thread_t *th));
-void
-ruby_thread_stack_overflow(rb_thread_t *th)
-{
- th->raised_flag = 0;
-#ifdef USE_SIGALTSTACK
- if (!rb_threadptr_during_gc(th)) {
- rb_exc_raise(sysstack_error);
- }
-#endif
- th->errinfo = sysstack_error;
- TH_JUMP_TAG(th, TAG_RAISE);
-}
-
int
rb_threadptr_set_raised(rb_thread_t *th)
{