summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm.c b/vm.c
index 2503ca9a9f..0259d9c9e7 100644
--- a/vm.c
+++ b/vm.c
@@ -3671,6 +3671,8 @@ Init_VM(void)
* The Binding of the top level scope
*/
rb_define_global_const("TOPLEVEL_BINDING", rb_binding_new());
+
+ rb_objspace_gc_enable(vm->objspace);
}
vm_init_redefined_flag();
@@ -3736,8 +3738,6 @@ Init_vm_objects(void)
vm->mark_object_ary = rb_ary_tmp_new(128);
vm->loading_table = st_init_strtable();
vm->frozen_strings = st_init_table_with_size(&rb_fstring_hash_type, 10000);
-
- rb_objspace_gc_enable(vm->objspace);
}
/* top self */