diff options
author | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-03 07:21:37 +0000 |
---|---|---|
committer | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-03 07:21:37 +0000 |
commit | 5e33ea956c44c6e2670ad7cf24c2d83ef3eaa674 (patch) | |
tree | da9df15859b791d996f4e179fe47a552a2f6f565 /vm.c | |
parent | cc71f75b60fdf7908fb51bbb9a65aadb0c1e3b75 (diff) | |
download | ruby-5e33ea956c44c6e2670ad7cf24c2d83ef3eaa674.tar.gz |
* 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
Diffstat (limited to 'vm.c')
-rw-r--r-- | vm.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 */ |