<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Hi Cay,</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Thanks for the information. I'm also observing lworld not flattening that example. I've opened up an issue to investigate:
<a href="https://bugs.openjdk.org/browse/JDK-8371410">https://bugs.openjdk.org/browse/JDK-8371410</a>.</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Thanks for the feedback!</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Best, </div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Paul</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<hr style="display: inline-block; width: 98%;">
<div id="divRplyFwdMsg">
<div style="direction: ltr; font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<b>From:</b> valhalla-dev <valhalla-dev-retn@openjdk.org> on behalf of Cay Horstmann <cay.horstmann@gmail.com><br>
<b>Sent:</b> Thursday, November 6, 2025 11:43 AM<br>
<b>To:</b> valhalla-dev@openjdk.org <valhalla-dev@openjdk.org><br>
<b>Subject:</b> Re: Prebuilt Valhalla JDK build 26-jep401ea2</div>
<div style="direction: ltr;"> </div>
</div>
<div style="font-size: 11pt;">Thanks, it worked with that branch.<br>
<br>
Here the GC.class_histogram outputs.<br>
<br>
Without --enable-preview:<br>
<br>
1: 50000003 1200000072 java.time.LocalDate (java.base@26-jep401ea2)<br>
2: 1 200000016 [Ljava.time.LocalDate; (java.base@26-jep401ea2)<br>
<br>
With --enable-preview:<br>
<br>
1: 1 400000016 [Ljava.time.LocalDate; (java.base@26-jep401ea2)<br>
<br>
Cheers,<br>
<br>
Cay<br>
<br>
<br>
Il 06/11/2025 09:54, Paul Hubner ha scritto:<br>
> Hi Cay,<br>
><br>
> The binaries are built from the jep401ea2 branch: <a data-auth="NotApplicable" class="OWAAutoLink" id="OWA8e27a5ed-db20-ddfc-591b-d7f571e03880" href="https://github.com/openjdk/valhalla/tree/jep401ea2">
https://github.com/openjdk/valhalla/tree/jep401ea2</a> <<a data-auth="NotApplicable" class="OWAAutoLink" id="OWA5fcf5581-b2e2-8388-991a-26f16bc109cb" href="https://github.com/openjdk/valhalla/tree/jep401ea2">https://github.com/openjdk/valhalla/tree/jep401ea2</a>>.
For clarification, are you observing heap flattening locally with our ea2 binaries?<br>
><br>
> Best,<br>
> Paul<br>
><br>
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
> *From:* valhalla-dev <valhalla-dev-retn@openjdk.org> on behalf of Cay Horstmann <cay.horstmann@gmail.com><br>
> *Sent:* Thursday, November 6, 2025 9:19 AM<br>
> *To:* valhalla-dev@openjdk.org <valhalla-dev@openjdk.org><br>
> *Subject:* Prebuilt Valhalla JDK build 26-jep401ea2<br>
> Hi, how was that build created? When I build from scratch from <a data-auth="NotApplicable" class="OWAAutoLink" id="OWA6f100d8c-75e0-200b-c594-223de41377ab" href="https://github.com/openjdk/valhalla">
https://github.com/openjdk/valhalla</a> <<a data-auth="NotApplicable" class="OWAAutoLink" id="OWAe5480b00-4b8a-6b61-0026-5ba5b7455a6f" href="https://github.com/openjdk/valhalla">https://github.com/openjdk/valhalla</a>>, I get a different behavior with the last
example on <a data-auth="NotApplicable" class="OWAAutoLink" id="OWA1dfae201-9aaf-c8bb-1cc0-369e0a4d1e1f" href="https://inside.java/2025/10/27/try-jep-401-value-classes/">
https://inside.java/2025/10/27/try-jep-401-value-classes/</a> <<a data-auth="NotApplicable" class="OWAAutoLink" id="OWA2a0b2a00-c953-ff26-c5d5-5bd061767f53" href="https://inside.java/2025/10/27/try-jep-401-value-classes/">https://inside.java/2025/10/27/try-jep-401-value-classes/</a>>
(i.e. no heap flattening).<br>
><br>
> Thanks,<br>
><br>
> Cay<br>
> --<br>
><br>
> Cay S. Horstmann | <a data-auth="NotApplicable" class="OWAAutoLink" id="OWAadd77c7a-e5c7-c5ba-ce5a-420368e0668b" href="https://horstmann.com">
https://horstmann.com</a> <<a data-auth="NotApplicable" class="OWAAutoLink" id="OWA4467bfe9-ef18-8b97-c565-9a041f362a19" href="https://horstmann.com">https://horstmann.com</a>><br>
><br>
<br>
--<br>
<br>
Cay S. Horstmann | <a data-auth="NotApplicable" class="OWAAutoLink" id="OWA571e187f-db45-2a14-e558-3952144cf745" href="https://horstmann.com">
https://horstmann.com</a><br>
<br>
</div>
</body>
</html>