JDK-7173584 : Implement arraycopy as a macro node
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: hs24
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2012-06-01
  • Updated: 2014-11-14
  • Resolved: 2014-08-11
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
9 b29Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
When arraycopy is intrinsified, it is converted as calls to specialized stubs based on what's known from the context of the arraycopy. Right now, this is done at parsing. By using a new macro node for arraycopy that is expanded later, the compiler may be able to gather more data on the context of the arraycopy and make a better choice for the stub to call.

This also opens the door to other optimizations such as inlining small copies in a series of loads/stores.

This also impacts clone and Arrays.copyOf's implementations because they rely on the arraycopy stubs as well.

Comments
Any chance this can make it for 8?
14-06-2013

EVALUATION See description
01-06-2012