JDK-8152840 : aarch64: improve _unsafe_arraycopy stub routine
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: aarch64
  • Submitted: 2016-03-28
  • Updated: 2021-02-01
  • Resolved: 2016-03-30
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 b115Fixed openjdk8u292Fixed
Related Reports
Relates :  
Description
Currently, the aarch64 port simply implements this stub routine by calling StubRoutines::_jbyte_arraycopy. Just like x86 & sparc port does, we can make this faster by checking the alignment of the src, dest, and count, and call some better arraycopy stubs, (say StubRoutines::_jshort_arraycopy). I see some 1%+ performance improvement on Spark Terasort benchmark by doing this.

BTW: we are missing _unsafe_arraycopy and _generic_arraycopy stubs for jdk8u, I would like to backport them from jdk9 after this improvement is approved and merged.