aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2022-07-22 11:04:43 -0400
committerPeter Zhu <peter@peterzhu.ca>2022-07-22 13:29:21 -0400
commite199ae3edcead0271c6da3410eb02acd927739b7 (patch)
tree6ba85447804f62b53a3c0ea983a464be6cce1610 /lib
parent203de45bd3635d262d301a3979e21238aa2c7909 (diff)
downloadruby-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