Mercurial > hg > graal-jvmci-8
comparison src/cpu/sparc/vm/c1_CodeStubs_sparc.cpp @ 2376:c7f3d0b4570f
7017732: move static fields into Class to prepare for perm gen removal
Reviewed-by: kvn, coleenp, twisti, stefank
author | never |
---|---|
date | Fri, 18 Mar 2011 16:00:34 -0700 |
parents | e4fee0bdaa85 |
children | 32f7097f9d8f |
comparison
equal
deleted
inserted
replaced
2375:d673ef06fe96 | 2376:c7f3d0b4570f |
---|---|
299 // initializer is being run so we emit a test which can be used to | 299 // initializer is being run so we emit a test which can be used to |
300 // check that this code is being executed by the initializing | 300 // check that this code is being executed by the initializing |
301 // thread. | 301 // thread. |
302 assert(_obj != noreg, "must be a valid register"); | 302 assert(_obj != noreg, "must be a valid register"); |
303 assert(_oop_index >= 0, "must have oop index"); | 303 assert(_oop_index >= 0, "must have oop index"); |
304 __ ld_ptr(_obj, instanceKlass::init_thread_offset_in_bytes() + sizeof(klassOopDesc), G3); | 304 __ ld_ptr(_obj, java_lang_Class::klass_offset_in_bytes(), G3); |
305 __ ld_ptr(G3, instanceKlass::init_thread_offset_in_bytes() + sizeof(klassOopDesc), G3); | |
305 __ cmp(G2_thread, G3); | 306 __ cmp(G2_thread, G3); |
306 __ br(Assembler::notEqual, false, Assembler::pn, call_patch); | 307 __ br(Assembler::notEqual, false, Assembler::pn, call_patch); |
307 __ delayed()->nop(); | 308 __ delayed()->nop(); |
308 | 309 |
309 // load_klass patches may execute the patched code before it's | 310 // load_klass patches may execute the patched code before it's |