aboutsummaryrefslogtreecommitdiffstats
path: root/gc.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-12 14:47:50 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-12 14:47:50 +0000
commit7c031258d9edaccbc7d4aba84c16a26a86c6dacf (patch)
treedfc815a8189a05d74b520b36f7c1786e7b5fb20e /gc.h
parenta34c7b4badd2e1209ff0fde324e32f3281fd1662 (diff)
downloadruby-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 'gc.h')
-rw-r--r--gc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gc.h b/gc.h
index c723106137..f5e3731d24 100644
--- a/gc.h
+++ b/gc.h
@@ -90,6 +90,9 @@ const char *rb_obj_info(VALUE obj);
const char *rb_raw_obj_info(char *buff, const int buff_size, VALUE obj);
void rb_obj_info_dump(VALUE obj);
+struct rb_thread_struct;
+int rb_threadptr_during_gc(struct rb_thread_struct *th);
+
RUBY_SYMBOL_EXPORT_BEGIN
/* exports for objspace module */