Skip to content

Commit

Permalink
Removed memory clobber
Browse files Browse the repository at this point in the history
  • Loading branch information
robehn committed Feb 13, 2024
1 parent 5043aaa commit 3af1c6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hotspot/os_cpu/linux_riscv/os_linux_riscv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -410,10 +410,10 @@ extern "C" {
if (UseZihintpause) {
// PAUSE is encoded as a FENCE instruction with pred=W, succ=0, fm=0, rd=x0, and rs1=x0.
// fence w, 0
// To do: __asm__ volatile("pause " : : : "memory");
// To do: __asm__ volatile("pause " : : : );
// We need to compile against march with zihintpause.
// Currently we do not.
__asm__ volatile(".word 0x0100000f " : : : "memory");
__asm__ volatile(".word 0x0100000f " : : : );
return 1;
}
return 0;
Expand Down

0 comments on commit 3af1c6d

Please sign in to comment.