RFR: 8326205: Grouping frequently called C2 nmethods in CodeCache [v6]
Chad Rakoczy
duke at openjdk.org
Wed Jan 28 00:39:13 UTC 2026
On Mon, 19 Jan 2026 23:06:56 GMT, Evgeny Astigeevich <eastigeevich at openjdk.org> wrote:
> We can consider relocating nmethods back to the normal heap, the non-profiled code heap.
IMO we should do this instead of GC throwing them away. If after being moved to the normal heap they become cold, GC will remove them from CodeCache. If they become hot again, they will be relocated to HotCodeHeap.
I think we should only consider relocating nmethods to the non-profiled code heap if the HotCodeHeap is full. If the GC determines an nmethod from the HotCodeHeap is cold, it would also have determined it were cold in the non-profiled heap.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27858#issuecomment-3808304020
More information about the hotspot-compiler-dev
mailing list