[External] : Re: Ephemeral threads

Viktor Klang viktor.klang at oracle.com
Fri Jan 9 15:26:36 UTC 2026


On 2026-01-09 15:39, Dmitry Zaslavsky wrote:
> someCollection.apar.map { …. }
> Can spin N tasks (Each can get it's VT) If some iteration of the loop 
> throws, we don’t need to rest of the code to run, it’s costly.
> If the task are not actively mounted but previously started and are 
> waiting… (in our case it’s LockSupport.park) we just want to drop that 
> entire queue and everything around it….
>
>
How do you handle acquired native resources that are yet to be released?


-- 
Cheers,
√


Viktor Klang
Software Architect, Java Platform Group
Oracle



More information about the loom-dev mailing list