aboutsummaryrefslogtreecommitdiffstats
path: root/vm.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-02-09 16:41:56 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-02-09 17:15:55 +0900
commit0f05b234fba2d961f1740c094a83f9831c15b210 (patch)
tree0283939c8605553098467cc4e8982ced2408e57e /vm.c
parentaeaf0dc55595b8a5bfdd92007fb85ef13855c632 (diff)
downloadruby-0f05b234fba2d961f1740c094a83f9831c15b210.tar.gz
Disable GC until VM objects get initialized [Bug #16616]
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vm.c b/vm.c
index f2f160b3f6..8c7abb3599 100644
--- a/vm.c
+++ b/vm.c
@@ -3345,6 +3345,8 @@ 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 */