United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6975027 use of movptr to set length of array
JDK-6975027 : use of movptr to set length of array

Details
Type:
Bug
Submit Date:
2010-08-05
Status:
Closed
Updated Date:
2011-04-23
Project Name:
JDK
Resolved Date:
2011-04-23
Component:
hotspot
OS:
solaris_9
Sub-Component:
compiler
CPU:
sparc
Priority:
P4
Resolution:
Fixed
Affected Versions:
hs19
Fixed Versions:
hs19 (b06)

Related Reports
Backport:
Backport:
Backport:
Backport:

Sub Tasks

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

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

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

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



Hardware and Software, Engineered to Work Together