comparison src/cpu/x86/vm/c1_LIRAssembler_x86.cpp @ 4739:52b5d32fbfaf

7117052: instanceKlass::_init_state can be u1 type Summary: Change instanceKlass::_init_state field to u1 type. Reviewed-by: bdelsart, coleenp, dholmes, phh, never Contributed-by: Jiangli Zhou <jiangli.zhou@oracle.com>
author coleenp
date Tue, 06 Dec 2011 18:28:51 -0500
parents f08d439fab8c
children 22cee0ee8927
comparison
equal deleted inserted replaced
4738:da4dd142ea01 4739:52b5d32fbfaf
1555 } 1555 }
1556 } 1556 }
1557 1557
1558 void LIR_Assembler::emit_alloc_obj(LIR_OpAllocObj* op) { 1558 void LIR_Assembler::emit_alloc_obj(LIR_OpAllocObj* op) {
1559 if (op->init_check()) { 1559 if (op->init_check()) {
1560 __ cmpl(Address(op->klass()->as_register(), 1560 __ cmpb(Address(op->klass()->as_register(),
1561 instanceKlass::init_state_offset_in_bytes() + sizeof(oopDesc)), 1561 instanceKlass::init_state_offset_in_bytes() + sizeof(oopDesc)),
1562 instanceKlass::fully_initialized); 1562 instanceKlass::fully_initialized);
1563 add_debug_info_for_null_check_here(op->stub()->info()); 1563 add_debug_info_for_null_check_here(op->stub()->info());
1564 __ jcc(Assembler::notEqual, *op->stub()->entry()); 1564 __ jcc(Assembler::notEqual, *op->stub()->entry());
1565 } 1565 }