From 06d957fd7c1ff59f314315969a545a8f4a5137be Mon Sep 17 00:00:00 2001 From: Aleksey Shipilev Date: Thu, 23 Nov 2023 08:20:38 +0000 Subject: [PATCH] 8320582: Zero: Misplaced CX8 enablement flag Reviewed-by: dholmes --- src/hotspot/cpu/zero/vm_version_zero.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/hotspot/cpu/zero/vm_version_zero.cpp b/src/hotspot/cpu/zero/vm_version_zero.cpp index 07f99d647ac60..a99885a533df8 100644 --- a/src/hotspot/cpu/zero/vm_version_zero.cpp +++ b/src/hotspot/cpu/zero/vm_version_zero.cpp @@ -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) { @@ -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;