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

Aleksey Shipilev shade at openjdk.org
Mon Oct 27 15:05:51 UTC 2025


On Fri, 24 Oct 2025 14:05:04 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:
> 
>   sleep

@dean-long -- you are fine with this patch, right?

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

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


More information about the hotspot-compiler-dev mailing list