RFR: 8299844: RISC-V: Implement _onSpinWait intrinsic [v2]
Feilong Jiang
fjiang at openjdk.org
Sun Jan 15 04:33:11 UTC 2023
On Sun, 15 Jan 2023 03:05:41 GMT, Yadong Wang <yadongwang at openjdk.org> wrote:
>> Implement _onSpinWait() intrinsic for RISC-V, and it can be implemented by using PAUSE instruction from Zihintpause Extension, which is ratified and a mandatory extension of RVA22U64 (https://github.com/riscv/riscv-profiles/blob/main/profiles.adoc#rva22u64-mandatory-extensions).
>> Software can use the PAUSE instruction to reduce energy consumption while executing spinwait
>> code sequences (https://github.com/riscv/riscv-isa-manual/blob/master/src/zihintpause.tex).
>>
>> Add a test case of test/hotspot/jtreg/compiler/onSpinWait/TestOnSpinWaitRISCV64.java, passed on QEMU.
>
> Yadong Wang has updated the pull request incrementally with one additional commit since the last revision:
>
> fix copyright year
src/hotspot/cpu/riscv/assembler_riscv.cpp line 4:
> 2: * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
> 3: * Copyright (c) 2014, Red Hat Inc. All rights reserved.
> 4: * Copyright (c) 2020, 2022, Huawei Technologies Co., Ltd. All rights reserved.
Unnecessary copyright year update of `asembler_riscv.cpp`.
-------------
PR: https://git.openjdk.org/jdk/pull/11921
More information about the hotspot-dev
mailing list