RFR: 8279949: JavaThread::_free_handle_block leaks native memory
Vladimir Ivanov
vlivanov at openjdk.java.net
Sun Feb 13 19:10:10 UTC 2022
On Sun, 13 Feb 2022 02:05:56 GMT, David Holmes <dholmes at openjdk.org> wrote:
> think we need to understand exactly how we end up with a chain of blocks at thread exit
My understanding is `JNIHandleBlock` is allocated on every upcall from VM to Java code (it's part of `JavaCallWrapper` ctor). Since it is possible to have "nested" upcalls (Java -> VM -> Java -> VM), there are multiple thread-local blocks allocated and they eventually end up on the free list.
-------------
PR: https://git.openjdk.java.net/jdk/pull/7453
More information about the hotspot-runtime-dev
mailing list