Project

General

Profile

« Previous | Next » 

Revision e199ae3e

Added by peterzhu2118 (Peter Zhu) almost 3 years ago

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.