JDK-6975027 : use of movptr to set length of array
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: hs19
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_9
  • CPU: sparc
  • Submitted: 2010-08-05
  • Updated: 2011-04-23
  • Resolved: 2011-04-23
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
6u21pFixed 7Fixed hs19Fixed
Description
4)
Harmless typo in assembler_x86.cpp/tlab_refill:
  shlptr(t1, log2_intptr(HeapWordSize/sizeof(jint)));
  movptr(Address(top, arrayOopDesc::length_offset_in_bytes()), t1);
movptr should be movl, as array length is 4-byte value. Might cause slowdown, however, if the array length field is not 8-byte aligned.

Oh, that's a weird one.  I'll get that fixed.

Comments
EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/36519c19beeb
14-08-2010

EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/36519c19beeb
10-08-2010

EVALUATION This is in a rare path in C1 only code but it should be fixed.
05-08-2010