JDK-8278241 : Implement JVM SpinPause on linux-aarch64
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: aarch64
  • Submitted: 2021-12-03
  • Updated: 2024-08-27
  • Resolved: 2021-12-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17 JDK 19
17.0.12-oracleFixed 19 b03Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Description
JDK-8186670 added OnSpinWaitInst/OnSpinWaitInstCount options which allow to specify an implementation of spin pause: an instruction and a number of it. These information can be used in an implementation of JVM SpinPause.

Comments
A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk17u-dev/pull/116 Date: 2022-01-24 15:09:15 +0000
24-01-2022

Fix Request (17u) A backport of a configurable implementation of JVM SpinPause to improve performance of contended locks and to achieve parity with x86 which has implemented SpinPause. The risk of changes is low. They enable one ISB-based implementation for Neoverse N1. Other AArch64 will continue using an empty implementation. Tested for fastdebug and release builds: - gtest: Passed - tier1...tier4: Passed - hotspot/jtreg/runtime/Thread/TestSpinPause.java: Passed It can be considered as clean. Applying the patch has an issue to find a proper position in stubGenerator_aarch64.cpp. No code changes are needed after repositioning.
24-01-2022

Changeset: bcb79fd0 Author: Evgeny Astigeevich <eastig@amazon.com> Committer: Paul Hohensee <phh@openjdk.org> Date: 2021-12-15 16:57:30 +0000 URL: https://git.openjdk.java.net/jdk/commit/bcb79fd012c9c298e58c20c59e564e9d2c16b970
15-12-2021