JDK-6814842 : Load shortening optimizations
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: hs15
  • Priority: P5
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2009-03-09
  • Updated: 2013-11-01
  • Resolved: 2009-06-17
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 6 JDK 7 Other
6u18Fixed 7Fixed hs16Fixed
Related Reports
Relates :  
6797305 handles load widening but no shortening which should be covered here.

For example:

  char c = (char) (intarray[i] & 0xFFFF);

EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/2056494941db

EVALUATION Integer shortening optimizations are no problem and working, but long shorting is difficult (see 6667618). I will not include long shortening optimizations here.