Integrated: 8360936: Test compiler/onSpinWait/TestOnSpinWaitAArch64.java fails after JDK-8359435
Evgeny Astigeevich
eastigeevich at openjdk.org
Fri Jul 11 15:28:47 UTC 2025
On Tue, 1 Jul 2025 15:29:10 GMT, Evgeny Astigeevich <eastigeevich at openjdk.org> wrote:
> Test compiler/onSpinWait/TestOnSpinWaitAArch64.java needs debug info to identify a position of spin wait instructions in generated code. The test switched to use `XX:CompileCommand=print` instead of `XX:+PrintAssembly` to have assembly only for a tested Java method. In release builds `XX:+PrintAssembly` prints out debug info but `XX:CompileCommand=print` does not.
>
> This PR reimplements the test to parse instructions and to check them. The test does not rely on debug info anymore.
>
> Tested on Linux and MacOS with and without hsdis:
> - Fastdebug: test passed
> - Slowdebug: test passed.
> - Release: test passed.
This pull request has now been integrated.
Changeset: a86dd56d
Author: Evgeny Astigeevich <eastigeevich at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/a86dd56de34f730b42593236f17118ef5ce4985a
Stats: 128 lines in 3 files changed: 34 ins; 71 del; 23 mod
8360936: Test compiler/onSpinWait/TestOnSpinWaitAArch64.java fails after JDK-8359435
Reviewed-by: shade, aph
-------------
PR: https://git.openjdk.org/jdk/pull/26072
More information about the hotspot-compiler-dev
mailing list