Mercurial > hg > graal-compiler
comparison src/share/vm/runtime/thread.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 | da091bb67459 |
children | 38fea01eb669 |
comparison
equal
deleted
inserted
replaced
2375:d673ef06fe96 | 2376:c7f3d0b4570f |
---|---|
3164 instanceKlassHandle ik = instanceKlassHandle(THREAD, k()); | 3164 instanceKlassHandle ik = instanceKlassHandle(THREAD, k()); |
3165 ik->initialize(CHECK_0); | 3165 ik->initialize(CHECK_0); |
3166 fieldDescriptor fd; | 3166 fieldDescriptor fd; |
3167 // Possible we might not find this field; if so, don't break | 3167 // Possible we might not find this field; if so, don't break |
3168 if (ik->find_local_field(vmSymbols::frontCacheEnabled_name(), vmSymbols::bool_signature(), &fd)) { | 3168 if (ik->find_local_field(vmSymbols::frontCacheEnabled_name(), vmSymbols::bool_signature(), &fd)) { |
3169 k()->bool_field_put(fd.offset(), true); | 3169 k()->java_mirror()->bool_field_put(fd.offset(), true); |
3170 } | 3170 } |
3171 } | 3171 } |
3172 | 3172 |
3173 if (UseStringCache) { | 3173 if (UseStringCache) { |
3174 // Forcibly initialize java/lang/StringValue and mutate the private | 3174 // Forcibly initialize java/lang/StringValue and mutate the private |
3180 instanceKlassHandle ik = instanceKlassHandle(THREAD, k()); | 3180 instanceKlassHandle ik = instanceKlassHandle(THREAD, k()); |
3181 ik->initialize(CHECK_0); | 3181 ik->initialize(CHECK_0); |
3182 fieldDescriptor fd; | 3182 fieldDescriptor fd; |
3183 // Possible we might not find this field: if so, silently don't break | 3183 // Possible we might not find this field: if so, silently don't break |
3184 if (ik->find_local_field(vmSymbols::stringCacheEnabled_name(), vmSymbols::bool_signature(), &fd)) { | 3184 if (ik->find_local_field(vmSymbols::stringCacheEnabled_name(), vmSymbols::bool_signature(), &fd)) { |
3185 k()->bool_field_put(fd.offset(), true); | 3185 k()->java_mirror()->bool_field_put(fd.offset(), true); |
3186 } | 3186 } |
3187 } | 3187 } |
3188 } | 3188 } |
3189 } | 3189 } |
3190 | 3190 |