aboutsummaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gc.c b/gc.c
index d39d14d709..ce80ccff7f 100644
--- a/gc.c
+++ b/gc.c
@@ -6651,6 +6651,13 @@ rb_during_gc(void)
return during_gc;
}
+int
+rb_threadptr_during_gc(rb_thread_t *th)
+{
+ rb_objspace_t *objspace = rb_objspace_of(th->vm);
+ return during_gc;
+}
+
#if RGENGC_PROFILE >= 2
static const char *type_name(int type, VALUE obj);