From d9febbdfe27b3cca03316a07d9e455be0f414b20 Mon Sep 17 00:00:00 2001 From: Evgeny Astigeevich Date: Fri, 13 Aug 2021 19:27:22 +0000 Subject: [PATCH] 8258604: Use 'isb' instruction in SpinPause on linux-aarch64 Fix: SpinPause() should return 1 if it executes code. --- src/hotspot/os_cpu/linux_aarch64/os_linux_aarch64.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotspot/os_cpu/linux_aarch64/os_linux_aarch64.cpp b/src/hotspot/os_cpu/linux_aarch64/os_linux_aarch64.cpp index bee52b54c56..123b41ee506 100644 --- a/src/hotspot/os_cpu/linux_aarch64/os_linux_aarch64.cpp +++ b/src/hotspot/os_cpu/linux_aarch64/os_linux_aarch64.cpp @@ -385,7 +385,7 @@ extern "C" { // ISB creates a small delay without consuming ALU resources. // This allows it to act as x86 PAUSE. __asm volatile("isb"); - return 0; + return 1; } void _Copy_conjoint_jshorts_atomic(const jshort* from, jshort* to, size_t count) {