< prev index next >

src/share/vm/ci/ciField.cpp

Print this page
rev 7800 : [mq]: cleanupOopInlineHpp


  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "ci/ciField.hpp"
  27 #include "ci/ciInstanceKlass.hpp"
  28 #include "ci/ciUtilities.hpp"
  29 #include "classfile/systemDictionary.hpp"
  30 #include "gc_interface/collectedHeap.inline.hpp"
  31 #include "interpreter/linkResolver.hpp"
  32 #include "memory/universe.inline.hpp"
  33 #include "oops/oop.inline.hpp"
  34 #include "oops/oop.inline2.hpp"
  35 #include "runtime/fieldDescriptor.hpp"
  36 
  37 // ciField
  38 //
  39 // This class represents the result of a field lookup in the VM.
  40 // The lookup may not succeed, in which case the information in
  41 // the ciField will be incomplete.
  42 
  43 // The ciObjectFactory cannot create circular data structures in one query.
  44 // To avoid vicious circularities, we initialize ciField::_type to NULL
  45 // for reference types and derive it lazily from the ciField::_signature.
  46 // Primitive types are eagerly initialized, and basic layout queries
  47 // can succeed without initialization, using only the BasicType of the field.
  48 
  49 // Notes on bootstrapping and shared CI objects:  A field is shared if and
  50 // only if it is (a) non-static and (b) declared by a shared instance klass.
  51 // This allows non-static field lists to be cached on shared types.
  52 // Because the _type field is lazily initialized, however, there is a
  53 // special restriction that a shared field cannot cache an unshared type.
  54 // This puts a small performance penalty on shared fields with unshared




  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "ci/ciField.hpp"
  27 #include "ci/ciInstanceKlass.hpp"
  28 #include "ci/ciUtilities.hpp"
  29 #include "classfile/systemDictionary.hpp"
  30 #include "gc_interface/collectedHeap.inline.hpp"
  31 #include "interpreter/linkResolver.hpp"
  32 #include "memory/universe.inline.hpp"
  33 #include "oops/oop.inline.hpp"

  34 #include "runtime/fieldDescriptor.hpp"
  35 
  36 // ciField
  37 //
  38 // This class represents the result of a field lookup in the VM.
  39 // The lookup may not succeed, in which case the information in
  40 // the ciField will be incomplete.
  41 
  42 // The ciObjectFactory cannot create circular data structures in one query.
  43 // To avoid vicious circularities, we initialize ciField::_type to NULL
  44 // for reference types and derive it lazily from the ciField::_signature.
  45 // Primitive types are eagerly initialized, and basic layout queries
  46 // can succeed without initialization, using only the BasicType of the field.
  47 
  48 // Notes on bootstrapping and shared CI objects:  A field is shared if and
  49 // only if it is (a) non-static and (b) declared by a shared instance klass.
  50 // This allows non-static field lists to be cached on shared types.
  51 // Because the _type field is lazily initialized, however, there is a
  52 // special restriction that a shared field cannot cache an unshared type.
  53 // This puts a small performance penalty on shared fields with unshared


< prev index next >