Skip to content

Commit 6b96bb6

Browse files
committed
8319777: Zero: Support 8-byte cmpxchg
Reviewed-by: dholmes, stuefe
1 parent 020c900 commit 6b96bb6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/hotspot/cpu/zero/vm_version_zero.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,12 @@ void VM_Version::initialize_cpu_information(void) {
145145
return;
146146
}
147147

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+
148154
_no_of_cores = os::processor_count();
149155
_no_of_threads = _no_of_cores;
150156
_no_of_sockets = _no_of_cores;

0 commit comments

Comments
 (0)