diff options
author | Peter Zhu <peter@peterzhu.ca> | 2022-07-22 11:04:43 -0400 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2022-07-22 13:29:21 -0400 |
commit | e199ae3edcead0271c6da3410eb02acd927739b7 (patch) | |
tree | 6ba85447804f62b53a3c0ea983a464be6cce1610 /lib | |
parent | 203de45bd3635d262d301a3979e21238aa2c7909 (diff) | |
download | ruby-e199ae3edcead0271c6da3410eb02acd927739b7.tar.gz |
Remove reference counting for all frozen arrays
The RARRAY_LITERAL_FLAG was added in commit
5871ecf956711fcacad7c03f2aef95115ed25bc4 to improve CoW performance for
array literals by not keeping track of reference counts.
This commit reverts that commit and has an alternate implementation that
is more generic for all frozen arrays. Since frozen arrays cannot be
modified, we don't need to set the RARRAY_SHARED_ROOT_FLAG and we don't
need to do reference counting.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions