diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2021-05-04 13:37:02 +0000 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2021-05-04 11:46:23 -0400 |
| commit | 3ca291c9ae1b6de09cce76e17aa3f08e92e1a2bf (patch) | |
| tree | 7bb2c625a07cd9b87a04c52b174626b7fcc9de02 /include/ruby/internal/module.h | |
| parent | d09988502ed75cae65b787865465361b675cf1ee (diff) | |
Correctly update array capacity after realloc
Reallocating to a smaller size in the transient heap may result in no
change in the actual capacity but the capacity of the array is still
updated to the smaller value.
This commit changes `ary_heap_realloc` to return the new capacity which
can be used by the caller to correctly update the capacity.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4448
Diffstat (limited to 'include/ruby/internal/module.h')
0 files changed, 0 insertions, 0 deletions
