diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-02-09 16:41:56 +0900 |
---|---|---|
committer | NARUSE, Yui <naruse@airemix.jp> | 2020-03-13 21:51:06 +0900 |
commit | a9284ecb90176b4d8e9aa264da14ea08931be48f (patch) | |
tree | bdb9a89a2f76f2ae6b45347c579f2e5da96a85c6 /vm.c | |
parent | 215eb86a7729bf0db487f399031ad55a1062fada (diff) | |
download | ruby-a9284ecb90176b4d8e9aa264da14ea08931be48f.tar.gz |
Disable GC until VM objects get initialized [Bug #16616]
Diffstat (limited to 'vm.c')
-rw-r--r-- | vm.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 */ |