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.
Other
hs16 b04Fixed
Related Reports
Relates :  
Description
6797305 handles load widening but no shortening which should be covered here.

For example:

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

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

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