comparison src/share/vm/opto/library_call.cpp @ 895:94b6d06fd759

6860920: serialize.cpp shouldn't use objArrayOopDesc::base_offset_in_bytes(T_BYTE) Summary: serialize.cpp currently uses objArrayOopDesc::base_offset_in_bytes(T_BYTE), which seems to be wrong. Reviewed-by: coleenp, kvn
author twisti
date Mon, 20 Jul 2009 08:20:00 -0700
parents fc4be448891f
children 1cef5ec3ca56
comparison
equal deleted inserted replaced
854:606c988ff684 895:94b6d06fd759
2072 } 2072 }
2073 } 2073 }
2074 2074
2075 // See if it is a narrow oop array. 2075 // See if it is a narrow oop array.
2076 if (adr_type->isa_aryptr()) { 2076 if (adr_type->isa_aryptr()) {
2077 if (adr_type->offset() >= objArrayOopDesc::base_offset_in_bytes(type)) { 2077 if (adr_type->offset() >= objArrayOopDesc::base_offset_in_bytes()) {
2078 const TypeOopPtr *elem_type = adr_type->is_aryptr()->elem()->isa_oopptr(); 2078 const TypeOopPtr *elem_type = adr_type->is_aryptr()->elem()->isa_oopptr();
2079 if (elem_type != NULL) { 2079 if (elem_type != NULL) {
2080 sharpened_klass = elem_type->klass(); 2080 sharpened_klass = elem_type->klass();
2081 } 2081 }
2082 } 2082 }