<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <p>We've explored this in the past. Unfortunately it doesn't help,
      as it can observably change the behavior exhibited by code
      executed by such a thread.</p>
    <div class="moz-cite-prefix">On 2026-01-11 12:12, Michal Domagala
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:CA+heAJBefH-AU3Yp6AzD7kZMakvLAy_dS-w2jRfDTK5miQDwmQ@mail.gmail.com">
      
      <div dir="ltr">
        <div dir="ltr">Maybe a good idea would be `Thread.ofEphemeral()`
          ? Effort on JVM side is minimal , because each non-tracked VT
          is ephemeral, everyone who want experiment with ephemeral has
          an option, no one will comply about semaphores, summoned
          demons, etc. because who consents cannot be injured
        </div>
        <br>
        <div class="gmail_quote gmail_quote_container">
          <div dir="ltr" class="gmail_attr">sob., 10 sty 2026 o
            18:18 Alan Bateman <<a href="mailto:alan.bateman@oracle.com" moz-do-not-send="true" class="moz-txt-link-freetext">alan.bateman@oracle.com</a>>
            napisał(a):<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On
            10/01/2026 16:00, Andrew Haley wrote:<br>
            ><br>
            You can summon other demons <br>
            when the threads act on objects with cleaners (or more
            generally, <br>
            anything with cleanup actions based on phantom refs). This
            can lead to <br>
            cleaning actions that attempt to release resources in an
            inconsistent <br>
            state. Even if we spent a few years on the issues, the usage
            (to allow <br>
            the alive threads be GC'ed) is very fragile to setup, and
            the resulting <br>
            behavior would surely be surprising to most developers<br>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Cheers,



Viktor Klang
Software Architect, Java Platform Group
Oracle</pre>
  </body>
</html>