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

Francesco Andreuzzi fandreuzzi at openjdk.org
Fri Oct 24 14:05:04 UTC 2025


> 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

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/27742/files
  - new: https://git.openjdk.org/jdk/pull/27742/files/b6d94cf8..5d0c7056

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=27742&range=06
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27742&range=05-06

  Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/27742.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27742/head:pull/27742

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


More information about the hotspot-compiler-dev mailing list