Mercurial > hg > truffle
comparison src/cpu/sparc/vm/c1_Runtime1_sparc.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 |
---|---|
396 // to stomp the real return address. | 396 // to stomp the real return address. |
397 __ save_frame(0); | 397 __ save_frame(0); |
398 | 398 |
399 if (id == fast_new_instance_init_check_id) { | 399 if (id == fast_new_instance_init_check_id) { |
400 // make sure the klass is initialized | 400 // make sure the klass is initialized |
401 __ ld(G5_klass, instanceKlass::init_state_offset_in_bytes() + sizeof(oopDesc), G3_t1); | 401 __ ldub(G5_klass, instanceKlass::init_state_offset_in_bytes() + sizeof(oopDesc), G3_t1); |
402 __ cmp_and_br_short(G3_t1, instanceKlass::fully_initialized, Assembler::notEqual, Assembler::pn, slow_path); | 402 __ cmp_and_br_short(G3_t1, instanceKlass::fully_initialized, Assembler::notEqual, Assembler::pn, slow_path); |
403 } | 403 } |
404 #ifdef ASSERT | 404 #ifdef ASSERT |
405 // assert object can be fast path allocated | 405 // assert object can be fast path allocated |
406 { | 406 { |