<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 class="elementToProof" style="font-family: "Calibri Light", "Helvetica Light", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Yes. You are correct.</div>
<div id="appendonsend"></div>
<div style="font-family: "Calibri Light", "Helvetica Light", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr style="display: inline-block; width: 98%;">
<div id="divRplyFwdMsg" dir="ltr"><span style="font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><b>From:</b> Charles Oliver Nutter <headius@headius.com><br>
<b>Sent:</b> Wednesday, May 21, 2025 3:53 PM<br>
<b>To:</b> Remi Forax <forax@univ-mlv.fr><br>
<b>Cc:</b> Da Vinci Machine Project <mlvm-dev@openjdk.org>; Chen Liang <chen.l.liang@oracle.com><br>
<b>Subject:</b> [External] : Re: Years later, finally integrating ClassValue... but...</span>
<div> </div>
</div>
<div style="direction: ltr;">Ok thanks for the confirmations!</div>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;">If I'm understanding correctly, in the future the way to guarantee once-only initialization of a ClassValue would be to have it produce a StableValue, of which only one will be installed, and which will then be guaranteed by the
 JVM to have once-only initialization and a foldable, stable result. Until that is generally available, I should use a factory object with double-checked locking to ensure once-only initialization (which is essentially what my own ClassValue did, but built
 as a wrapper around java.lang.ClassValue).</div>
</body>
</html>