Change RepeatedField to create only 'current' elements, not 'total' elements.
Currently RepeatedField allocates and constructs all elements on 'Reserve'. This creates inefficiencies, but more problematically, leads to sanitizer issues once we have instances that actively poison their private contents such as Cord. This change fixes RepeatedField to only create actually 'live' elements. PiperOrigin-RevId: 504121827
Loading
Please sign in to comment