/* * Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * 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. *
*/
private: // If you add a new field that points to any metaspace object, you // must add this field to ObjArrayKlass::metaspace_pointers_do().
Klass* _element_klass; // The klass of the elements of this array type
Klass* _bottom_klass; // The one-dimensional type (InstanceKlass or TypeArrayKlass)
// Constructor
ObjArrayKlass(int n, Klass* element_klass, Symbol* name); static ObjArrayKlass* allocate(ClassLoaderData* loader_data, int n, Klass* k, Symbol* name, TRAPS); public: // For dummy objects
ObjArrayKlass() {}
private: // Either oop or narrowOop depending on UseCompressedOops. // must be called from within ObjArrayKlass.cpp void do_copy(arrayOop s, size_t src_offset,
arrayOop d, size_t dst_offset, int length, TRAPS); public: // Returns the ObjArrayKlass for n'th dimension. virtual Klass* array_klass(int n, TRAPS); virtual Klass* array_klass_or_null(int n);
// Returns the array class with this class as element type. virtual Klass* array_klass(TRAPS); virtual Klass* array_klass_or_null();
// Initialization (virtual from Klass) void initialize(TRAPS);
// Oop fields (and metadata) iterators // // The ObjArrayKlass iterators also visits the Object's klass.
// Iterate over oop elements and metadata. template <typename T, typename OopClosureType> inlinevoid oop_oop_iterate(oop obj, OopClosureType* closure);
// Iterate over oop elements and metadata. template <typename T, typename OopClosureType> inlinevoid oop_oop_iterate_reverse(oop obj, OopClosureType* closure);
// Iterate over oop elements within mr, and metadata. template <typename T, typename OopClosureType> inlinevoid oop_oop_iterate_bounded(oop obj, OopClosureType* closure, MemRegion mr);
// Iterate over oop elements within [start, end), and metadata. template <typename T, class OopClosureType> inlinevoid oop_oop_iterate_range(objArrayOop a, OopClosureType* closure, int start, intend);
public: // Iterate over all oop elements. template <typename T, class OopClosureType> inlinevoid oop_oop_iterate_elements(objArrayOop a, OopClosureType* closure);
private: // Iterate over all oop elements with indices within mr. template <typename T, class OopClosureType> inlinevoid oop_oop_iterate_elements_bounded(objArrayOop a, OopClosureType* closure, void* low, void* high);
template <typename T, class OopClosureType> inlinevoid oop_oop_iterate_elements_bounded(objArrayOop a, OopClosureType* closure, MemRegion mr);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.