RFR: 8326205: Grouping frequently called C2 nmethods in CodeCache [v6]
George Wort
duke at openjdk.org
Tue Jan 20 10:06:00 UTC 2026
On Mon, 19 Jan 2026 23:06:56 GMT, Evgeny Astigeevich <eastigeevich at openjdk.org> wrote:
> We currently rely on GC removing cold nmethods from HotCodeHeap.
Won't the GC only remove an nmethod if it's inaccessible rather than it just being cold though? Or does the GC sweep methods that haven't been called for a while?
> IMO we should do this instead of GC throwing them away.
Yes, this was what I meant when I said purge/reset.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27858#issuecomment-3772024557
More information about the hotspot-runtime-dev
mailing list