comparison src/cpu/x86/vm/c1_Runtime1_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 cec1757a0134
children 22cee0ee8927
comparison
equal deleted inserted replaced
4738:da4dd142ea01 4739:52b5d32fbfaf
1009 __ push(rdi); 1009 __ push(rdi);
1010 __ push(rbx); 1010 __ push(rbx);
1011 1011
1012 if (id == fast_new_instance_init_check_id) { 1012 if (id == fast_new_instance_init_check_id) {
1013 // make sure the klass is initialized 1013 // make sure the klass is initialized
1014 __ cmpl(Address(klass, instanceKlass::init_state_offset_in_bytes() + sizeof(oopDesc)), instanceKlass::fully_initialized); 1014 __ cmpb(Address(klass, instanceKlass::init_state_offset_in_bytes() + sizeof(oopDesc)), instanceKlass::fully_initialized);
1015 __ jcc(Assembler::notEqual, slow_path); 1015 __ jcc(Assembler::notEqual, slow_path);
1016 } 1016 }
1017 1017
1018 #ifdef ASSERT 1018 #ifdef ASSERT
1019 // assert object can be fast path allocated 1019 // assert object can be fast path allocated