aboutsummaryrefslogtreecommitdiffstats
path: root/ext/objspace/objspace.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/objspace/objspace.c')
-rw-r--r--ext/objspace/objspace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/objspace/objspace.c b/ext/objspace/objspace.c
index a077a1e4e0..ae298fc3e1 100644
--- a/ext/objspace/objspace.c
+++ b/ext/objspace/objspace.c
@@ -780,6 +780,7 @@ reachable_objects_from(VALUE self, VALUE obj)
}
void Init_object_tracing(VALUE rb_mObjSpace);
+void Init_gc_hook(VALUE rb_mObjSpace);
/* objspace library extends ObjectSpace module and add several
* methods to get internal statistic information about
@@ -811,4 +812,5 @@ Init_objspace(void)
rb_define_method(rb_mInternalObjectWrapper, "internal_object_id", iow_internal_object_id, 0);
Init_object_tracing(rb_mObjSpace);
+ Init_gc_hook(rb_mObjSpace);
}