JDK-8321269 : Require platforms to define DEFAULT_CACHE_LINE_SIZE
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 17,21,22
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-12-04
  • Updated: 2024-01-24
  • Resolved: 2023-12-05
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 21 JDK 22
21.0.3Fixed 22 b27Fixed
Related Reports
Blocks :  
Description
Found it while doing new code that wants to know the cache line size.

Currently, there is a fallback in globalDefinitions.hpp that defaults DEFAULT_CACHE_LINE_SIZE to 64 if platform does not define it. Instead of relying on default, force platform definitions to tell what is the reasonable default for the platform. This would simplify porting to other architectures.
Comments
[jdk21u-fix-request] Approval Request from Aleksey Shipilëv Clean backport to improve platform support. Unblocks future backports that rely on default cache line size.
23-01-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk21u-dev/pull/150 Date: 2024-01-09 11:49:20 +0000
09-01-2024

Changeset: a56286f7 Author: Aleksey Shipilev <shade@openjdk.org> Date: 2023-12-05 10:35:41 +0000 URL: https://git.openjdk.org/jdk/commit/a56286f7ad9a8110026f48eb45f1d7a273b2f9fb
05-12-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/16948 Date: 2023-12-04 12:42:45 +0000
04-12-2023