Skip to content

Commit

Permalink
Remove CMF barrier
Browse files Browse the repository at this point in the history
  • Loading branch information
robehn committed Nov 29, 2024
1 parent 48dc042 commit b5a1874
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/hotspot/gtest/riscv/test_assembler_riscv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ class CmovTester {
_masm.mv(c_rarg0, c_rarg2);
_masm.ret();
}
_masm.flush();
OrderAccess::cross_modify_fence();
_masm.flush(); // icache invalidate
int64_t ret = ((zicond_func)entry)(a0, a1, a2, a3);
ASSERT_EQ(ret, result);
BufferBlob::free(bb);
Expand Down Expand Up @@ -149,8 +148,7 @@ class CmpxchgTester {
}
_masm.ret();
}
_masm.flush();
OrderAccess::cross_modify_fence();
_masm.flush(); // icache invalidate
TESTSIZE ret = ((cmpxchg_func)entry)(addr, expected, new_value, result);
BufferBlob::free(bb);
return ret;
Expand Down

0 comments on commit b5a1874

Please sign in to comment.