Withdrawn: 8355013: GrowableArray default constructor should not allocate
duke
duke at openjdk.org
Tue Jun 17 14:32:35 UTC 2025
On Fri, 18 Apr 2025 05:35:05 GMT, Quan Anh Mai <qamai at openjdk.org> wrote:
> Hi,
>
> This patch changes the default constructors of `GrowableArray` so that it does not allocate. This is helpful because sometimes we create a `GrowableArray` and append another into it immediately, or create a `GrowableArray` to merge the value from several branches. In these cases, the default allocation is not needed. This also aligns the behaviour with that of `std::vector`, which does not allocate for default construction.
>
> Please take a look and leave your reviews, thanks a lot.
This pull request has been closed without being integrated.
-------------
PR: https://git.openjdk.org/jdk/pull/24748
More information about the hotspot-dev
mailing list