<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>Hello,</div><div>as far as i remember, the problem is that you can resurrect a value,</div><div>for example with a Long</div><div><br data-mce-bogus="1"></div><div>Thread1</div><div> a.x = new Long(12);</div><div> a.x = null;</div><div> IO.println(a.x); //12</div><div><br data-mce-bogus="1"></div><div>Thread2</div><div> IO.println(a.x); // null</div><div> a.x = new Long(77); // descheduled in between writing the maker and writing the long</div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>The thread1 can see the Long(12) to be resurrected, something that is not possible with references.</div><div><br data-mce-bogus="1"></div><div>regards,</div><div>Rémi</div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Quân Anh Mai" <anhmdq@gmail.com><br><b>To: </b>"David Alayachew" <davidalayachew@gmail.com><br><b>Cc: </b>"valhalla-dev" <valhalla-dev@openjdk.org><br><b>Sent: </b>Thursday, November 6, 2025 3:52:41 AM<br><b>Subject: </b>Re: About flattening a nullable j.l.Long<br></blockquote></div><div data-marker="__QUOTED_TEXT__"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div dir="ltr">Ah yes, my bad, it is <a href="https://github.com/openjdk/valhalla/pull/1720" target="_blank">https://github.com/openjdk/valhalla/pull/1720</a><br data-mce-bogus="1"></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, 6 Nov 2025 at 07:26, David Alayachew <<a href="mailto:davidalayachew@gmail.com" target="_blank">davidalayachew@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Just a heads up, your [1] is a dead link. Can you try to put the url in again?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 5, 2025, 2:06 PM Quân Anh Mai <<a href="mailto:anhmdq@gmail.com" target="_blank">anhmdq@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<br><div>Currently, I'm having a PR that allows flattening of a nullable value class with a 64-bit payload [1]. Dan Smith told me that some ideas along these lines were discussed a few years ago, and the consensus was that it was a dead end. May I ask what the concerns were, and whether they are still relevant now?</div><br><div>Thanks a lot,</div><div>Quan Anh</div></div>
</blockquote></div>
</blockquote></div><br></blockquote></div></div></body></html>