RFR: 8297638: Memory leak in case of many started-dead threads [v2]

Serguei Spitsyn sspitsyn at openjdk.org
Tue Feb 7 03:04:44 UTC 2023


On Tue, 7 Feb 2023 02:25:45 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:

>> The poll() removes the next object from the queue.
>
> This code is a bit odd in that it uses the reference queue to find out if there are one or more unreachable listeners. If there are, then it uses the code below to remove them. So the reference queue is really just a unreachable object detection mechanism, and not used for the actual processing of the objects.

Okay. Thank you for explanation. It looks reasonable then.

-------------

PR: https://git.openjdk.org/jdk/pull/12081


More information about the serviceability-dev mailing list