When should I use onFork?

Alan Bateman alan.bateman at oracle.com
Sun Aug 24 16:17:55 UTC 2025



On 24/08/2025 12:21, Viktor Klang wrote:
> Not sure this applies to your specific situation, David, but for the 
> other readers of this conversation I also want to raise the point that 
> implementing a Joiner must be done in a thread-safe manner.
>
Just to add to Viktor's comment. The Joiner class description has a API 
note with guidance on this point. It also has high-level guidance on 
creating Joiners to be as general-purpose as possible and putting 
"business logic" at use site (one of your other mails asks about this).

-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20250824/7a041dcd/attachment-0001.htm>


More information about the loom-dev mailing list