RFR: 8296463: Memory leak in JVM_StartThread with the integration of Virtual threads
Alan Bateman
alanb at openjdk.org
Fri Nov 18 07:46:11 UTC 2022
On Thu, 17 Nov 2022 17:30:59 GMT, Gili Tzabari <duke at openjdk.org> wrote:
> 1. Will it fix a leak in both platform and virtual threads? Or only virtual threads?
> 2. I assume you tested for leaks under JDK 19? I was under the impression that the `ExtentLocal` functionality was not part of this release which is why I'm surprised to see it mentioned in the fix.
This issue is a leak when a platform thread terminates. It's a complicated story but essentially the infrastructure for extent locals (since renamed to Scoped Values, see JEP 429) went into JDK 19 as part of the implementation of JEP 425. So yes, a feature for maybe JDK 20 is causing a leak in JDK 19.
-------------
PR: https://git.openjdk.org/jdk/pull/11198
More information about the hotspot-runtime-dev
mailing list