From 5e33ea956c44c6e2670ad7cf24c2d83ef3eaa674 Mon Sep 17 00:00:00 2001 From: tenderlove Date: Wed, 3 Jun 2015 07:21:37 +0000 Subject: * vm.c: eagerly allocate `loading_table`. This eliminates the need to do NULL checks when looking up the `loading_table` hash. https://github.com/ruby/ruby/pull/918 * load.c: remove various NULL checks git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm.c | 1 + 1 file changed, 1 insertion(+) (limited to 'vm.c') diff --git a/vm.c b/vm.c index 6b3f4fec13..0702e8a39e 100644 --- a/vm.c +++ b/vm.c @@ -2859,6 +2859,7 @@ Init_vm_objects(void) /* initialize mark object array, hash */ vm->mark_object_ary = rb_ary_tmp_new(128); + vm->loading_table = st_init_strtable(); } /* top self */ -- cgit v1.2.3