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). I forgot about this PR. I've merged locally and ran hotspot_valhalla without any problems, so I'll integrate this now. ------------- PR Comment: https://git.openjdk.org/valhalla/pull/2347#issuecomment-4377947675
