Skip to content

Commit 06d957f

Browse files
committed
8320582: Zero: Misplaced CX8 enablement flag
Reviewed-by: dholmes
1 parent 14193a0 commit 06d957f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/hotspot/cpu/zero/vm_version_zero.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,12 @@ void VM_Version::initialize() {
137137
#ifdef ASSERT
138138
UNSUPPORTED_OPTION(CountCompiledCalls);
139139
#endif
140+
141+
// Supports 8-byte cmpxchg with compiler built-ins.
142+
// These built-ins are supposed to be implemented on
143+
// all platforms (even if not natively), so we claim
144+
// the support unconditionally.
145+
_supports_cx8 = true;
140146
}
141147

142148
void VM_Version::initialize_cpu_information(void) {
@@ -145,12 +151,6 @@ void VM_Version::initialize_cpu_information(void) {
145151
return;
146152
}
147153

148-
// Supports 8-byte cmpxchg with compiler built-ins.
149-
// These built-ins are supposed to be implemented on
150-
// all platforms (even if not natively), so we claim
151-
// the support unconditionally.
152-
_supports_cx8 = true;
153-
154154
_no_of_cores = os::processor_count();
155155
_no_of_threads = _no_of_cores;
156156
_no_of_sockets = _no_of_cores;

0 commit comments

Comments
 (0)