Integrated: 8365265: x86 short forward jump exceeds 8-bit offset in methodHandles_x86.cpp when using Intel APX
Srinivas Vamsi Parasa
sparasa at openjdk.org
Wed Aug 13 17:56:19 UTC 2025
On Mon, 11 Aug 2025 17:38:28 GMT, Srinivas Vamsi Parasa <sparasa at openjdk.org> wrote:
> The goal of this PR is to address the failure caused by x86 forward jump offset exceeding imm8 displacement when running the HotSpot jtreg test `test/hotspot/jtreg/compiler/c2/TestLWLockingCodeGen.java` using Intel APX (on SDE emulator).
>
> This bug triggers an assertion failure in methodHandles_x86.cpp because the assembler emits a short forward jump (imm8 displacement) whose target is more than 127 bytes away, exceeding the allowed range. This appears to be caused by larger stub code size when APX instruction encoding is enabled.
>
> The fix for this issue is to replace the `jccb` instruction with` jcc` in methodHandles_x86.cpp.
This pull request has now been integrated.
Changeset: 38a26141
Author: Srinivas Vamsi Parasa <sparasa at openjdk.org>
Committer: Sandhya Viswanathan <sviswanathan at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/38a261415dc29aae01c9b878d94cb302c60a3983
Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
8365265: x86 short forward jump exceeds 8-bit offset in methodHandles_x86.cpp when using Intel APX
Reviewed-by: shade, jbhateja, aph
-------------
PR: https://git.openjdk.org/jdk/pull/26731
More information about the hotspot-compiler-dev
mailing list