7132690: InstanceKlass:_reference_type should be u1 type

Change InstanceKlass::_reference_type to u1 type.

Reviewed-by: dholmes, coleenp, acorn
This commit is contained in:
Jiangli Zhou 2012-01-25 17:40:51 -05:00 committed by Jiangli Zhou
parent 63b889aba6
commit cd85c690df
5 changed files with 11 additions and 9 deletions

View file

@ -472,7 +472,7 @@ void G1UnsafeGetObjSATBBarrierStub::emit_code(LIR_Assembler* ce) {
__ load_klass(src_reg, tmp_reg);
Address ref_type_adr(tmp_reg, instanceKlass::reference_type_offset());
__ ld(ref_type_adr, tmp_reg);
__ ldub(ref_type_adr, tmp_reg);
// _reference_type field is of type ReferenceType (enum)
assert(REF_NONE == 0, "check this code");