JDK-8157841 : aarch64: prefetch ignores cache line size
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: aarch64
  • Submitted: 2016-05-25
  • Updated: 2021-02-01
  • Resolved: 2016-05-26
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 9 Other
9 b122Fixed openjdk8u292Fixed
Related Reports
Relates :  
Description
The settings for Prefetch in vm_version_aarch64.cpp ignore the cache line size and assume it is 64. On some partners HW the cache line size is 128.

For example AllocatePrefetchStepSize is set to a constant 64, which is plainly wrong as it should be set to at least 1 cache line size.

The variables affected are

AllocatePrefetchDistance
AllocatePrefetchStepSize
PrefetchScanIntervalInBytes
PrefetchCopyIntervalInBytes

Also, the checking code in vm_version_aarch64.cpp do you allow you to set the value of PrefetchCopyIntervalInBytes to -1 on the command line, but instead give an error if this is attempted.

Also, the current implementation does store prefetches before STXR for all partners implementations whereas this is only applicable to ARM A57 implementation.