RFR: 8369219: JNI::RegisterNatives causes a memory leak in CodeCache [v4]

Francesco Andreuzzi fandreuzzi at openjdk.org
Thu Oct 16 14:39:18 UTC 2025


On Thu, 16 Oct 2025 02:36:11 GMT, Dean Long <dlong at openjdk.org> wrote:

> We could instead allow them to be cleaned up like regular nmethods.

That sounds reasonable to me, native methods seem to be tracked like all other nmethods. 

Removing `is_native_method()` altogether from the condition was the first implementation I had, and as far as I remember there was no failure in tier1 or tier2. Should I propose this alternative implementation as part of this PR?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27742#discussion_r2436249273


More information about the hotspot-compiler-dev mailing list