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

robert engels robaho at icloud.com
Thu Aug 1 15:51:20 UTC 2024


Then it really makes no sense. What if that thread has a reference to a reference counted object for a native resource, file, etc. 

Simply reusing the ram used by the vt stack wont help at all. 

> 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