RFR: 8321371: SpinPause() not implemented for bsd_aarch64/macOS [v2]

Erik Österlund eosterlund at openjdk.org
Wed Dec 20 14:59:50 UTC 2023


On Wed, 20 Dec 2023 12:11:18 GMT, Fredrik Bredberg <fbredberg at openjdk.org> wrote:

>> The SpinPause() function only returns 0 on bsd_aarch64 (i.e. macOS)
>> 
>> This PR initially meant to implement SpinPause() for macOS on AArch64 by copying the source from linux_aarch64, but after having some internal discussions, it seems like the most reasonable thing to do is to implement SpinPause() using a single inline yield instruction.
>> 
>> Tested successfully on macosx-aarch64 tier1-tier5.
>
> Fredrik Bredberg has updated the pull request incrementally with one additional commit since the last revision:
> 
>   SpinPause() is now configurable on bsd_aarch64/macOS

Looks good.

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

Marked as reviewed by eosterlund (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/16994#pullrequestreview-1791067720


More information about the hotspot-runtime-dev mailing list