Prebuilt Valhalla JDK build 26-jep401ea2

Paul Hubner paul.hubner at oracle.com
Thu Nov 6 14:04:10 UTC 2025


Hi Cay,

Thanks for the information. I'm also observing lworld not flattening that example. I've opened up an issue to investigate: https://bugs.openjdk.org/browse/JDK-8371410.

Thanks for the feedback!

Best,
Paul

________________________________
From: valhalla-dev <valhalla-dev-retn at openjdk.org> on behalf of Cay Horstmann <cay.horstmann at gmail.com>
Sent: Thursday, November 6, 2025 11:43 AM
To: valhalla-dev at openjdk.org <valhalla-dev at openjdk.org>
Subject: Re: Prebuilt Valhalla JDK build 26-jep401ea2

Thanks, it worked with that branch.

Here the GC.class_histogram outputs.

Without --enable-preview:

    1:      50000003     1200000072  java.time.LocalDate (java.base at 26-jep401ea2)
    2:             1      200000016  [Ljava.time.LocalDate; (java.base at 26-jep401ea2)

With --enable-preview:

    1:             1      400000016  [Ljava.time.LocalDate; (java.base at 26-jep401ea2)

Cheers,

Cay


Il 06/11/2025 09:54, Paul Hubner ha scritto:
> Hi Cay,
>
> The binaries are built from the jep401ea2 branch: https://github.com/openjdk/valhalla/tree/jep401ea2 <https://github.com/openjdk/valhalla/tree/jep401ea2>. For clarification, are you observing heap flattening locally with our ea2 binaries?
>
> Best,
> Paul
>
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> *From:* valhalla-dev <valhalla-dev-retn at openjdk.org> on behalf of Cay Horstmann <cay.horstmann at gmail.com>
> *Sent:* Thursday, November 6, 2025 9:19 AM
> *To:* valhalla-dev at openjdk.org <valhalla-dev at openjdk.org>
> *Subject:* Prebuilt Valhalla JDK build 26-jep401ea2
> Hi, how was that build created? When I build from scratch from https://github.com/openjdk/valhalla <https://github.com/openjdk/valhalla>, I get a different behavior with the last example on https://inside.java/2025/10/27/try-jep-401-value-classes/ <https://inside.java/2025/10/27/try-jep-401-value-classes/> (i.e. no heap flattening).
>
> Thanks,
>
> Cay
> --
>
> Cay S. Horstmann | https://horstmann.com <https://horstmann.com>
>

--

Cay S. Horstmann | https://horstmann.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/valhalla-dev/attachments/20251106/87b31c66/attachment.htm>


More information about the valhalla-dev mailing list