RFR: 8186670: Implement _onSpinWait() intrinsic for AArch64 [v3]

Evgeny Astigeevich github.com+42899633+eastig at openjdk.java.net
Tue Sep 28 08:06:12 UTC 2021


On Wed, 22 Sep 2021 12:28:42 GMT, Evgeny Astigeevich <github.com+42899633+eastig at openjdk.org> wrote:

>> Good point. There's no significant performance advantage to having this in the header.
>
>> Why use a macro here? You could just put the loop around the switch statement. And the method body seems sufficiently large that it ought to go in the .cpp file.
> 
> :) compiler engineering experience. Compilers have a problem to apply unswitching optimization to loop-invariant SWITCHes.
> I'll update the code as suggested.

Done

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

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


More information about the hotspot-dev mailing list