7117052: instanceKlass::_init_state can be u1 type

Change instanceKlass::_init_state field to u1 type.

Reviewed-by: bdelsart, coleenp, dholmes, phh, never
This commit is contained in:
Jiangli Zhou 2011-12-06 18:28:51 -05:00 committed by Coleen Phillimore
parent 8e81e037e7
commit f9f4ba0203
14 changed files with 27 additions and 19 deletions

View file

@ -2455,7 +2455,7 @@ void LIR_Assembler::emit_alloc_obj(LIR_OpAllocObj* op) {
op->obj()->as_register() == O0 &&
op->klass()->as_register() == G5, "must be");
if (op->init_check()) {
__ ld(op->klass()->as_register(),
__ ldub(op->klass()->as_register(),
instanceKlass::init_state_offset_in_bytes() + sizeof(oopDesc),
op->tmp1()->as_register());
add_debug_info_for_null_check_here(op->stub()->info());