Skip to content

Commit

Permalink
8304293: RISC-V: JDK-8276799 missed atomic intrinsic support for C1
Browse files Browse the repository at this point in the history
Reviewed-by: fyang, yzhu
  • Loading branch information
feilongjiang authored and RealFYang committed Mar 20, 2023
1 parent e339e18 commit c09f83e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/hotspot/cpu/riscv/vm_version_riscv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ const char* VM_Version::_vm_mode = "";
uint32_t VM_Version::_initial_vector_length = 0;

void VM_Version::initialize() {
_supports_cx8 = true;
_supports_atomic_getset4 = true;
_supports_atomic_getadd4 = true;
_supports_atomic_getset8 = true;
_supports_atomic_getadd8 = true;

get_os_cpu_info();

// check if satp.mode is supported, currently supports up to SV48(RV64)
Expand Down

1 comment on commit c09f83e

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.