RFR: 8326205: Grouping frequently called C2 nmethods in CodeCache

Evgeny Astigeevich eastigeevich at openjdk.org
Wed Dec 10 21:41:48 UTC 2025


On Wed, 29 Oct 2025 19:51:42 GMT, Chad Rakoczy <duke at openjdk.org> wrote:

> I think that we need to leave `CodeBlobType::MethodHot` regardless if C2 is present or not.

I agree. 
Another option might be to create a heap of `MethodNonProfiled` type which is hidden from `CodeCache::allocate`. `nmethod::relocate(CodeBlobType)` will be changed to `nmethod::relocate(CodeHeap*)`.  This might simplify things, for example with putting `HotCodeHeapSize` in  `opto/c2_globals.hpp`.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27858#discussion_r2608299316


More information about the hotspot-runtime-dev mailing list