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

Francesco Andreuzzi fandreuzzi at openjdk.org
Sat Oct 18 09:54:05 UTC 2025


On Sat, 11 Oct 2025 18:25:48 GMT, Francesco Andreuzzi <fandreuzzi at openjdk.org> wrote:

>> I propose to amend `nmethod::is_cold` to let GC collect not-entrant native `nmethod` instances.
>> 
>> Passes tier1 and tier2 (fastdebug).
>
> Francesco Andreuzzi has updated the pull request incrementally with one additional commit since the last revision:
> 
>   update foundOne

Marking as draft, I'll take some measurements to check if removing nmethod entry barriers for native stubs gives a measurable benefit.

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

PR Comment: https://git.openjdk.org/jdk/pull/27742#issuecomment-3418137388


More information about the hotspot-compiler-dev mailing list