Integrated: 8322858: compiler/c2/aarch64/TestFarJump.java fails on AArch64 due to unexpected PrintAssembly output
Boris Ulasevich
bulasevich at openjdk.org
Tue Jan 9 10:36:31 UTC 2024
On Fri, 5 Jan 2024 11:32:16 GMT, Boris Ulasevich <bulasevich at openjdk.org> wrote:
> 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.
This pull request has now been integrated.
Changeset: 52a6c375
Author: Boris Ulasevich <bulasevich at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/52a6c37558fa970f595067bc1bb5bc2b710c3876
Stats: 3 lines in 1 file changed: 0 ins; 1 del; 2 mod
8322858: compiler/c2/aarch64/TestFarJump.java fails on AArch64 due to unexpected PrintAssembly output
Reviewed-by: aph, thartmann
-------------
PR: https://git.openjdk.org/jdk/pull/17278
More information about the hotspot-compiler-dev
mailing list