/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
#ifndef SHARE_VM_OOPS_OBJARRAYKLASS_HPP
#define SHARE_VM_OOPS_OBJARRAYKLASS_HPP
#include "memory/specialized_oop_closures.hpp"
#include "oops/arrayKlass.hpp"
#include "oops/instanceKlass.hpp"
// objArrayKlass is the klass for objArrays
friend class VMStructs;
private:
public:
// Instance variables
// Compiler/Interpreter offset
static ByteSize element_klass_offset() { return in_ByteSize(sizeof(klassOopDesc) + offset_of(objArrayKlass, _element_klass)); }
// Dispatched operation
bool can_be_primary_super_slow() const;
bool compute_is_subtype_of(klassOop k);
bool oop_is_objArray_slow() const { return true; }
// Allocation
// Copying
// Compute protection domain
// Compute class loader
private:
// Either oop or narrowOop depending on UseCompressedOops.
// must be called from within objArrayKlass.cpp
protected:
// Returns the objArrayKlass for n'th dimension.
// Returns the array class with this class as element type.
public:
// Casting from klassOop
return (objArrayKlass*) k->klass_part();
}
// Sizing
// Initialization (virtual from Klass)
void initialize(TRAPS);
// Garbage collection
// Parallel Scavenge and Parallel Old
#ifndef SERIALGC
template <class T> inline void
#endif // !SERIALGC
// Iterators
}
}
// JVM support
private:
public:
// Printing
#ifndef PRODUCT
#endif //PRODUCT
// Verification
const char* internal_name() const;
};
#endif // SHARE_VM_OOPS_OBJARRAYKLASS_HPP