< prev index next >

src/hotspot/share/oops/arrayKlass.hpp

Print this page




  44 
  45  protected:
  46   // Constructors
  47   // The constructor with the Symbol argument does the real array
  48   // initialization, the other is a dummy
  49   ArrayKlass(Symbol* name, KlassID id);
  50   ArrayKlass() { assert(DumpSharedSpaces || UseSharedSpaces, "only for cds"); }
  51 
  52  public:
  53   // Testing operation
  54   DEBUG_ONLY(bool is_array_klass_slow() const { return true; })
  55 
  56   // Instance variables
  57   int dimension() const                 { return _dimension;      }
  58   void set_dimension(int dimension)     { _dimension = dimension; }
  59 
  60   Klass* higher_dimension() const     { return _higher_dimension; }
  61   inline Klass* higher_dimension_acquire() const; // load with acquire semantics
  62   void set_higher_dimension(Klass* k) { _higher_dimension = k; }
  63   inline void release_set_higher_dimension(Klass* k); // store with release semantics
  64   Klass** adr_higher_dimension()      { return (Klass**)&this->_higher_dimension;}
  65 
  66   Klass* lower_dimension() const      { return _lower_dimension; }
  67   void set_lower_dimension(Klass* k)  { _lower_dimension = k; }
  68   Klass** adr_lower_dimension()       { return (Klass**)&this->_lower_dimension;}
  69 
  70   // offset of first element, including any padding for the sake of alignment
  71   int  array_header_in_bytes() const    { return layout_helper_header_size(layout_helper()); }
  72   int  log2_element_size() const        { return layout_helper_log2_element_size(layout_helper()); }
  73   // type of elements (T_OBJECT for both oop arrays and array-arrays)
  74   BasicType element_type() const        { return layout_helper_element_type(layout_helper()); }
  75 
  76   virtual InstanceKlass* java_super() const;//{ return SystemDictionary::Object_klass(); }
  77 
  78   // Allocation
  79   // Sizes points to the first dimension of the array, subsequent dimensions
  80   // are always in higher memory.  The callers of these set that up.
  81   virtual oop multi_allocate(int rank, jint* sizes, TRAPS);
  82   objArrayOop allocate_arrayArray(int n, int length, TRAPS);
  83 
  84   // find field according to JVM spec 5.4.3.2, returns the klass in which the field is defined
  85   Klass* find_field(Symbol* name, Symbol* sig, fieldDescriptor* fd) const;
  86 
  87   // Lookup operations
  88   Method* uncached_lookup_method(const Symbol* name,




  44 
  45  protected:
  46   // Constructors
  47   // The constructor with the Symbol argument does the real array
  48   // initialization, the other is a dummy
  49   ArrayKlass(Symbol* name, KlassID id);
  50   ArrayKlass() { assert(DumpSharedSpaces || UseSharedSpaces, "only for cds"); }
  51 
  52  public:
  53   // Testing operation
  54   DEBUG_ONLY(bool is_array_klass_slow() const { return true; })
  55 
  56   // Instance variables
  57   int dimension() const                 { return _dimension;      }
  58   void set_dimension(int dimension)     { _dimension = dimension; }
  59 
  60   Klass* higher_dimension() const     { return _higher_dimension; }
  61   inline Klass* higher_dimension_acquire() const; // load with acquire semantics
  62   void set_higher_dimension(Klass* k) { _higher_dimension = k; }
  63   inline void release_set_higher_dimension(Klass* k); // store with release semantics

  64 
  65   Klass* lower_dimension() const      { return _lower_dimension; }
  66   void set_lower_dimension(Klass* k)  { _lower_dimension = k; }

  67 
  68   // offset of first element, including any padding for the sake of alignment
  69   int  array_header_in_bytes() const    { return layout_helper_header_size(layout_helper()); }
  70   int  log2_element_size() const        { return layout_helper_log2_element_size(layout_helper()); }
  71   // type of elements (T_OBJECT for both oop arrays and array-arrays)
  72   BasicType element_type() const        { return layout_helper_element_type(layout_helper()); }
  73 
  74   virtual InstanceKlass* java_super() const;//{ return SystemDictionary::Object_klass(); }
  75 
  76   // Allocation
  77   // Sizes points to the first dimension of the array, subsequent dimensions
  78   // are always in higher memory.  The callers of these set that up.
  79   virtual oop multi_allocate(int rank, jint* sizes, TRAPS);
  80   objArrayOop allocate_arrayArray(int n, int length, TRAPS);
  81 
  82   // find field according to JVM spec 5.4.3.2, returns the klass in which the field is defined
  83   Klass* find_field(Symbol* name, Symbol* sig, fieldDescriptor* fd) const;
  84 
  85   // Lookup operations
  86   Method* uncached_lookup_method(const Symbol* name,


< prev index next >