diff options
author | Aaron Patterson <tenderlove@ruby-lang.org> | 2019-07-02 10:33:40 +0100 |
---|---|---|
committer | Aaron Patterson <tenderlove@github.com> | 2020-01-06 12:41:33 -0800 |
commit | b0bf654c3164e9c6b5b38aa6fe23bd76d28a38d2 (patch) | |
tree | 366cde98746dde84c48aa6a6d77c92b9713e47b6 /loadpath.c | |
parent | 95d23f36ff7be45bdca84c9ff6252593e73374a3 (diff) | |
download | ruby-b0bf654c3164e9c6b5b38aa6fe23bd76d28a38d2.tar.gz |
always expand ivar arrays to max width
If the instance variable table hasn't been "expanded", allocate the
maximum size of the ivar table. This operates under the assumption that
most objects will eventually expand their ivar array to the maximum
width anyway, so we may as well avoid realloc calls.
Diffstat (limited to 'loadpath.c')
0 files changed, 0 insertions, 0 deletions