RFR: 8278241: Implement JVM SpinPause on linux-aarch64 [v3]

Andrew Haley aph at openjdk.java.net
Tue Dec 14 14:32:07 UTC 2021


On Tue, 14 Dec 2021 12:23:40 GMT, Evgeny Astigeevich <duke at openjdk.java.net> wrote:

>> src/hotspot/os_cpu/linux_aarch64/os_linux_aarch64.cpp line 385:
>> 
>>> 383: extern "C" {
>>> 384:   int SpinPause() {
>>> 385:     using spin_wait_func_ptr_t = void (*)();
>> 
>> I think you'll want `ThreadWXEnable wx(WXExec, thread);` for Apple here.
>
> Sorry, why do we need it here? This is linux-aarch64 implementation of SpinPause.
> I think it should be in SpinPause in `os_cpu/bsd_aarch64/os_bsd_aarch64.cpp`. Am I right?

You are indeed right. We can worry about Apple another day.

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

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


More information about the hotspot-dev mailing list