Mercurial > hg > graal-compiler
comparison src/share/vm/oops/cpCacheOop.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 | a97fd181b813 |
children | ed69575596ac |
comparison
equal
deleted
inserted
replaced
2375:d673ef06fe96 | 2376:c7f3d0b4570f |
---|---|
131 int orig_field_index, | 131 int orig_field_index, |
132 int field_offset, | 132 int field_offset, |
133 TosState field_type, | 133 TosState field_type, |
134 bool is_final, | 134 bool is_final, |
135 bool is_volatile) { | 135 bool is_volatile) { |
136 set_f1(field_holder()); | 136 set_f1(field_holder()->java_mirror()); |
137 set_f2(field_offset); | 137 set_f2(field_offset); |
138 // The field index is used by jvm/ti and is the index into fields() array | 138 // The field index is used by jvm/ti and is the index into fields() array |
139 // in holder instanceKlass. This is scaled by instanceKlass::next_offset. | 139 // in holder instanceKlass. This is scaled by instanceKlass::next_offset. |
140 assert((orig_field_index % instanceKlass::next_offset) == 0, "wierd index"); | 140 assert((orig_field_index % instanceKlass::next_offset) == 0, "wierd index"); |
141 const int field_index = orig_field_index / instanceKlass::next_offset; | 141 const int field_index = orig_field_index / instanceKlass::next_offset; |