[External] : Re: Virtual thread memory leak because TrackingRootContainer keeps threads

robert engels robaho at icloud.com
Thu Aug 1 15:55:19 UTC 2024


Unless you are taking exception to my words “auto-cleanup”. I mean this only that the vt and is references are subject to GC. 

Maybe it would be helpful if you state what the expected use case is? The JSR I thought was clear - but you are stating things from a direction the JSR doesn’t discuss. 

> On Aug 1, 2024, at 10:48 AM, Ron Pressler <ron.pressler at oracle.com> wrote:
> 
> 
> 
>> On 1 Aug 2024, at 16:04, Robert Engels <robaho at icloud.com> wrote:
>> 
>> “Thread leak” is real, but I don’t think the solution is to try add auto-cleanup.
> 
> No auto-cleanup is being discussed or suggested. Certainly new mechanisms are not being added. Unreachable memory may be overwritten and reused by the VM, and whether or not garbage collection is over-complicated, it is simply how the JDK works.
> 
> — Ron


More information about the loom-dev mailing list