summaryrefslogtreecommitdiff
path: root/gc/mmtk/mmtk.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc/mmtk/mmtk.c')
-rw-r--r--gc/mmtk/mmtk.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gc/mmtk/mmtk.c b/gc/mmtk/mmtk.c
index 4e964a6add..cc57d6dfae 100644
--- a/gc/mmtk/mmtk.c
+++ b/gc/mmtk/mmtk.c
@@ -630,8 +630,11 @@ rb_gc_impl_stress_get(void *objspace_ptr)
VALUE
rb_gc_impl_config_get(void *objspace_ptr)
{
- // TODO
- return rb_hash_new();
+ VALUE hash = rb_hash_new();
+
+ rb_hash_aset(hash, ID2SYM(rb_intern_const("mmtk_worker_count")), RB_ULONG2NUM(mmtk_worker_count()));
+
+ return hash;
}
void