RFR: 8186670: Implement _onSpinWait() intrinsic for AArch64

Evgeny Astigeevich github.com+42899633+eastig at openjdk.java.net
Mon Sep 20 13:00:54 UTC 2021


On Sat, 18 Sep 2021 09:31:05 GMT, Andrew Haley <aph at openjdk.org> wrote:

>> Good catch. It is a copy-paste error.
>> Is there any method to test C1 generated assembly code?
>
> You could do it the same way as hotspot/jtreg/compiler/c2/aarch64/TestVolatiles.java, i.e. spawn a subtask and parse the output dump. It's very fiddly, though.

Yes, I used it as an example when I was writing tests for the PR. It works only for C2 because it relies on C2 `XX:+PrintOptoAssembly`. I haven't found anything similar for C1.

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

PR: https://git.openjdk.java.net/jdk/pull/5562


More information about the hotspot-dev mailing list