[External] : Re: Virtual thread memory leak because TrackingRootContainer keeps threads
Ron Pressler
ron.pressler at oracle.com
Thu Jul 4 18:43:12 UTC 2024
> On 3 Jul 2024, at 18:27, robert engels <rengels at ix.netcom.com> wrote:
>
> I agree 100% - I am fighting that the auto-closing of the queues, clean-up, etc is “unneeded magic”
There is no auto-closing, no cleanup, and no magic. If a thread gets stuck in a state where it can never be observed or continued — so if it is NOT waiting on a queue to which something could be enqueued because in that case the thread COULD possibly continue — then whether that thread consumes some inaccessible bytes in memory or not is the same as far as functionality is concerned.
To compare it to a magic trick, this is about as magical as me asking you to pick a card from a deck without looking at it and then torching both your card and the deck and telling you that I know your card had some suit and either a face or a number.
— Ron
More information about the loom-dev
mailing list