RFR: 8322858: compiler/c2/aarch64/TestFarJump.java fails on AArch64 due to unexpected PrintAssembly output
Boris Ulasevich
bulasevich at openjdk.org
Fri Jan 5 11:37:44 UTC 2024
Test checks for the ADRP instruction in the [Exception Handler] section of the TestFarJump::main PrintAssembly output.
The -XX:CompileOnly=TestFarJump::main option is not sufficient to restrict PrintAssembly output to a specific method. A number of method assemblies precede the output of the TestFarJump::main method:
- java.lang.invoke.MethodHandle::linkToStatic(LLLLLLL)L
- java.lang.invoke.MethodHandle::linkToStatic(LLLL)V
- java.lang.invoke.MethodHandle::invokeBasic(LLLLLL)L
- java.lang.invoke.MethodHandle::linkToSpecial(LLLLLLLL)L
- java.lang.invoke.MethodHandle::linkToSpecial(LLLLL)V
- java.lang.invoke.MethodHandle::invokeBasic(LLL)L
- java.lang.invoke.MethodHandle::linkToSpecial(LLLLL)L
- java.lang.invoke.MethodHandle::linkToStatic(LL)L
- java.lang.invoke.MethodHandle::linkToSpecial(LL)V
- java.lang.invoke.MethodHandle::invokeBasic()L
- java.lang.invoke.MethodHandle::linkToSpecial(LL)L
- java.lang.invoke.MethodHandle::linkToStatic(LLL)L
- java.lang.invoke.MethodHandle::linkToStatic(LLLL)L
- java.lang.invoke.MethodHandle::linkToSpecial(LLL)V
- java.lang.invoke.MethodHandle::invokeBasic(L)L
- java.lang.invoke.MethodHandle::linkToSpecial(LLL)L
- java.lang.invoke.MethodHandle::linkToStatic(LLL)V
- java.lang.invoke.MethodHandle::linkToStatic(LL)I
- jdk.internal.vm.Continuation::enterSpecial
- compiler.c2.aarch64.TestFarJump::main
With this change, I use the -XX:CompileCommand=option,TestFarJump::main,bool,PrintAssembly,true option to restrict the PrintAssembly output to a specific method. Now the only [Exception Handler] in the listing is the section of TestFarJump::main method.
-------------
Commit messages:
- 8322858: compiler/c2/aarch64/TestFarJump.java fails on AArch64 due to unexpected PrintAssembly output
Changes: https://git.openjdk.org/jdk/pull/17278/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=17278&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8322858
Stats: 3 lines in 1 file changed: 0 ins; 1 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/17278.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/17278/head:pull/17278
PR: https://git.openjdk.org/jdk/pull/17278
More information about the hotspot-compiler-dev
mailing list