comparison src/cpu/x86/vm/templateTable_x86_32.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 fdb992d83a87
children 22cee0ee8927
comparison
equal deleted inserted replaced
4738:da4dd142ea01 4739:52b5d32fbfaf
3186 __ movptr(rcx, Address(rcx, rdx, Address::times_ptr, sizeof(constantPoolOopDesc))); 3186 __ movptr(rcx, Address(rcx, rdx, Address::times_ptr, sizeof(constantPoolOopDesc)));
3187 __ push(rcx); // save the contexts of klass for initializing the header 3187 __ push(rcx); // save the contexts of klass for initializing the header
3188 3188
3189 // make sure klass is initialized & doesn't have finalizer 3189 // make sure klass is initialized & doesn't have finalizer
3190 // make sure klass is fully initialized 3190 // make sure klass is fully initialized
3191 __ cmpl(Address(rcx, instanceKlass::init_state_offset_in_bytes() + sizeof(oopDesc)), instanceKlass::fully_initialized); 3191 __ cmpb(Address(rcx, instanceKlass::init_state_offset_in_bytes() + sizeof(oopDesc)), instanceKlass::fully_initialized);
3192 __ jcc(Assembler::notEqual, slow_case); 3192 __ jcc(Assembler::notEqual, slow_case);
3193 3193
3194 // get instance_size in instanceKlass (scaled to a count of bytes) 3194 // get instance_size in instanceKlass (scaled to a count of bytes)
3195 __ movl(rdx, Address(rcx, Klass::layout_helper_offset_in_bytes() + sizeof(oopDesc))); 3195 __ movl(rdx, Address(rcx, Klass::layout_helper_offset_in_bytes() + sizeof(oopDesc)));
3196 // test to see if it has a finalizer or is malformed in some way 3196 // test to see if it has a finalizer or is malformed in some way