Skip to content

Commit

Permalink
8320582: Zero: Misplaced CX8 enablement flag
Browse files Browse the repository at this point in the history
Reviewed-by: dholmes
  • Loading branch information
shipilev committed Nov 23, 2023
1 parent 14193a0 commit 06d957f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/hotspot/cpu/zero/vm_version_zero.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,12 @@ void VM_Version::initialize() {
#ifdef ASSERT
UNSUPPORTED_OPTION(CountCompiledCalls);
#endif

// Supports 8-byte cmpxchg with compiler built-ins.
// These built-ins are supposed to be implemented on
// all platforms (even if not natively), so we claim
// the support unconditionally.
_supports_cx8 = true;
}

void VM_Version::initialize_cpu_information(void) {
Expand All @@ -145,12 +151,6 @@ void VM_Version::initialize_cpu_information(void) {
return;
}

// Supports 8-byte cmpxchg with compiler built-ins.
// These built-ins are supposed to be implemented on
// all platforms (even if not natively), so we claim
// the support unconditionally.
_supports_cx8 = true;

_no_of_cores = os::processor_count();
_no_of_threads = _no_of_cores;
_no_of_sockets = _no_of_cores;
Expand Down

0 comments on commit 06d957f

Please sign in to comment.