diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-12 14:47:50 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-12 14:47:50 +0000 |
commit | 7c031258d9edaccbc7d4aba84c16a26a86c6dacf (patch) | |
tree | dfc815a8189a05d74b520b36f7c1786e7b5fb20e /thread.c | |
parent | a34c7b4badd2e1209ff0fde324e32f3281fd1662 (diff) | |
download | ruby-7c031258d9edaccbc7d4aba84c16a26a86c6dacf.tar.gz |
thread.c: during GC for thread
* thread.c (ruby_thread_stack_overflow): check if the given thread
is during GC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2171,7 +2171,7 @@ ruby_thread_stack_overflow(rb_thread_t *th) { th->raised_flag = 0; #ifdef USE_SIGALTSTACK - if (!rb_during_gc()) { + if (!rb_threadptr_during_gc(th)) { rb_exc_raise(sysstack_error); } #endif |