Commit 9ca411a4 authored by Martijn Vels's avatar Martijn Vels Committed by Copybara-Service
Browse files

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
parent ffa9b503
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment