Integrated: 8369219: JNI::RegisterNatives causes a memory leak in CodeCache

Francesco Andreuzzi fandreuzzi at openjdk.org
Tue Oct 28 06:36:18 UTC 2025


On Fri, 10 Oct 2025 11:50:50 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).

This pull request has now been integrated.

Changeset: 05ee55ef
Author:    Francesco Andreuzzi <fandreuzzi at openjdk.org>
Committer: Aleksey Shipilev <shade at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/05ee55efcf138a28c895c395c49934390d10ee45
Stats:     146 lines in 3 files changed: 145 ins; 0 del; 1 mod

8369219: JNI::RegisterNatives causes a memory leak in CodeCache

Reviewed-by: shade, apangin, dlong

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

PR: https://git.openjdk.org/jdk/pull/27742


More information about the hotspot-compiler-dev mailing list