RFR: 8316694: Implement relocation of nmethod within CodeCache [v13]

Chad Rakoczy duke at openjdk.org
Thu Jul 24 18:56:05 UTC 2025


On Thu, 8 May 2025 19:59:01 GMT, Chad Rakoczy <duke at openjdk.org> wrote:

>> Actually the issue is not during code buffer expansion. It's called when creating a new nmethod that I can only get to occur when using the Graal compiler. So it may not be true that calls always have trampolines in the case of Graal. This _fix_ may just make the bug harder to encounter
>
> For debug builds Hotspot uses the 2M range to determine if there should be a trampoline or not for a call. Graal uses 128M regardless of debug or release builds. This means that Graal compiled methods may not have trampolines but this check will expect them too. I reverted this change as it just means there is a difference on how Graal and Hotspot determine max branch range

This change was reverted

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23573#discussion_r2229309026


More information about the hotspot-compiler-dev mailing list