RFR: 8365265: x86 short forward jump exceeds 8-bit offset in methodHandles_x86.cpp when using Intel APX

Andrew Haley aph at openjdk.org
Tue Aug 12 08:06:11 UTC 2025


On Tue, 12 Aug 2025 06:23:56 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> Looks good. This is diagnostics code, so performance is not a question.
> 
> I think we generally avoid shortening branches over `__ STOP`, for example, which size is generally unpredictable. So this looks in alignment with that tactics. Maybe you want to unshorten the branch at L157 as well.

All thi.s long-and-short branch stuff is a pain. I wonder, given that we're now saving stubs in an archive, whether we should just bite the bullet and implement branch relaxation for stubs. I don't think it would be very hard.

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

PR Comment: https://git.openjdk.org/jdk/pull/26731#issuecomment-3178187948


More information about the hotspot-compiler-dev mailing list