Disable GC until VM objects get initialized [Bug #16616]

This commit is contained in:
Nobuyoshi Nakada 2020-02-09 16:41:56 +09:00 committed by NARUSE, Yui
parent 215eb86a77
commit a9284ecb90
3 changed files with 4 additions and 0 deletions

2
vm.c
View file

@ -3331,6 +3331,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 */