ReferenceQueue declared but not used in ThreadContainers (memory leak)?

Alan Bateman Alan.Bateman at oracle.com
Tue May 16 19:52:14 UTC 2023


On 16/05/2023 20:38, Alexey Gavrilov wrote:
> :
>
> I guess the idea was that `QUEUE` should have been passed as a second 
> parameter to the `WeakReference` constructor in the 
> `registerContainer` method, so the reference queue would properly 
> register every new `ThreadContainer` instance.

Good sleuthing, I suspect this got lost somehow before the integration 
for JDK 19. I haven't seen any other reports but if there are many pool 
being created over time then it will be an issue. We'll get a bug 
created for this and sort it out. Thank you!

-Alan


More information about the loom-dev mailing list