mirror of
https://github.com/ruby/ruby.git
synced 2025-09-18 01:54:00 +02:00
Disable GC until VM objects get initialized [Bug #16616]
This commit is contained in:
parent
215eb86a77
commit
a9284ecb90
3 changed files with 4 additions and 0 deletions
2
vm.c
2
vm.c
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue