[jdk15u-dev] RFR: 8186670: Implement _onSpinWait() intrinsic for AArch64

Evgeny Astigeevich duke at openjdk.java.net
Tue Mar 8 19:20:24 UTC 2022


On Fri, 25 Feb 2022 13:22:14 GMT, Andrew Haley <aph-open at littlepinkcloud.com> wrote:

> Interesting, so I guess that's much more dramatic than anything we have in
> the OpenJDK benchmarks. Maybe we want a JMH version of that.

I've converted it to the JMH version. Results:

No intrinsic:
Benchmark                                 Mode  Cnt     Score     Error  Units
ThreadOnSpinWaitProducerConsumer01.trial  avgt   10  2078.777 ± 743.187  ms/op

1-ISB
Benchmark                                 Mode  Cnt    Score   Error  Units
ThreadOnSpinWaitProducerConsumer01.trial  avgt   10  239.728 ± 3.207  ms/op


> Do you think that onSpinWait() = ISB would help with 8267502?

Maybe, if I knew more details of https://bugs.openjdk.java.net/browse/JDK-8246677.

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

PR: https://git.openjdk.java.net/jdk15u-dev/pull/181


More information about the jdk-updates-dev mailing list