On Tue, 21 Apr 2026 13:28:41 GMT, Stefan Karlsson <[email protected]> wrote:

> [JDK-8379514](https://bugs.openjdk.org/browse/JDK-8379514) Restructured the 
> code and left the LayoutKind parameter unused in new_flatArray.
> 
> While removing that parameter I realized that the other overload of 
> new_flatArray is inconsistent with the other new_*Array functions. It's first 
> element is the klass that is going to be used to allocate an instance, 
> whereas all the other functions take the element klass as the first 
> parameter. I propose that we remove overload and inline its single line into 
> the single call site.
> 
> I've also updated new_flatArray to take an InlineKlass* instead of a Klass*.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: 8d84aee1
Author:    Stefan Karlsson <[email protected]>
URL:       
https://git.openjdk.org/valhalla/commit/8d84aee1d3d40c2f525b10a7ca5ff413f4a22ef0
Stats:     17 lines in 4 files changed: 3 ins; 8 del; 6 mod

8382622: [lworld] Cleanup new_flatArray

Reviewed-by: fparain, iwalulya

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

PR: https://git.openjdk.org/valhalla/pull/2347

Reply via email to