RFR: JDK-8256844: Make NMT late-initializable

Thomas Stuefe stuefe at openjdk.java.net
Fri Jul 30 18:57:32 UTC 2021


On Fri, 30 Jul 2021 18:28:44 GMT, Zhengyu Gu <zgu at openjdk.org> wrote:

>> So, you are saying that there is no memory that is malloc'd pre-NMT-init phase and freed post-NMT-init phase?
>
> Okay, I see. It just leaks those memory, so the table can be read-only.

Exactly. There are a few allocs that either get free'd or realloc'ed post-init, but not enough to make freeing them worth it if it means having to serialize access to the lookup table.

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

PR: https://git.openjdk.java.net/jdk/pull/4874


More information about the core-libs-dev mailing list