RFR: 8345485: C2 MergeLoads: merge adjacent array/native memory loads into larger load [v12]

kuaiwei duke at openjdk.org
Mon Apr 28 03:25:53 UTC 2025


On Mon, 21 Apr 2025 11:20:38 GMT, Emanuel Peter <epeter at openjdk.org> wrote:

>> I choose `GrowableArray` for convenience. And it can be changed as a stack allocate data.
>
> Ah, we have a misunderstanding. I was asking why not 
> Suggestion:
> 
> typedef GrowableArray<MergeLoadInfo> MergeLoadInfoList;
> 
> i.e. allocate the elements of the array directly in the array (in-place), rather than allocating separate elements.

I changed as `GrowableArray<MergeLoadInfo>` .

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/24023#discussion_r2062835731


More information about the hotspot-compiler-dev mailing list