changeset 1901:36519c19beeb

6975027: use of movptr to set length of array Reviewed-by: kvn, iveresov
author never
date Tue, 10 Aug 2010 12:15:10 -0700
parents f4f596978298
children 4a665be40fd3
files src/cpu/x86/vm/assembler_x86.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/cpu/x86/vm/assembler_x86.cpp	Mon Aug 09 17:51:56 2010 -0700
+++ b/src/cpu/x86/vm/assembler_x86.cpp	Tue Aug 10 12:15:10 2010 -0700
@@ -7151,7 +7151,7 @@
   subptr(t1, typeArrayOopDesc::header_size(T_INT));
   addptr(t1, (int32_t)ThreadLocalAllocBuffer::alignment_reserve());
   shlptr(t1, log2_intptr(HeapWordSize/sizeof(jint)));
-  movptr(Address(top, arrayOopDesc::length_offset_in_bytes()), t1);
+  movl(Address(top, arrayOopDesc::length_offset_in_bytes()), t1);
   // set klass to intArrayKlass
   // dubious reloc why not an oop reloc?
   movptr(t1, ExternalAddress((address) Universe::intArrayKlassObj_addr()));