Thanks, it worked with that branch.
Here the GC.class_histogram outputs.
Without --enable-preview:
1: 50000003 1200000072 java.time.LocalDate (java.base@26-jep401ea2)
2: 1 200000016 [Ljava.time.LocalDate;
(java.base@26-jep401ea2)
With --enable-preview:
1: 1 400000016 [Ljava.time.LocalDate;
(java.base@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 <[email protected]> on behalf of Cay Horstmann
<[email protected]>
*Sent:* Thursday, November 6, 2025 9:19 AM
*To:* [email protected] <[email protected]>
*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