RFR: 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:30 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.

Tobias and Andrew, thank you!

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

PR Comment: https://git.openjdk.org/jdk/pull/17278#issuecomment-1882814890


More information about the hotspot-compiler-dev mailing list