10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
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 #ifndef SHARE_VM_OOPS_ARRAYOOP_HPP
26 #define SHARE_VM_OOPS_ARRAYOOP_HPP
27
28 #include "memory/universe.inline.hpp"
29 #include "oops/oop.hpp"
30
31 // arrayOopDesc is the abstract baseclass for all arrays. It doesn't
32 // declare pure virtual to enforce this because that would allocate a vtbl
33 // in each instance, which we don't want.
34
35 // The layout of array Oops is:
36 //
37 // markOop
38 // Klass* // 32 bits if compressed but declared 64 in LP64.
39 // length // shares klass memory or allocated after declared fields.
40
41
42 class arrayOopDesc : public oopDesc {
43 friend class VMStructs;
44 friend class arrayOopDescTest;
45
46 // Interpreter/Compiler offsets
47
48 // Header size computation.
49 // The header is considered the oop part of this type plus the length.
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
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 #ifndef SHARE_VM_OOPS_ARRAYOOP_HPP
26 #define SHARE_VM_OOPS_ARRAYOOP_HPP
27
28 #include "memory/universe.inline.hpp"
29 #include "oops/oop.hpp"
30 #include "utilities/align.hpp"
31
32 // arrayOopDesc is the abstract baseclass for all arrays. It doesn't
33 // declare pure virtual to enforce this because that would allocate a vtbl
34 // in each instance, which we don't want.
35
36 // The layout of array Oops is:
37 //
38 // markOop
39 // Klass* // 32 bits if compressed but declared 64 in LP64.
40 // length // shares klass memory or allocated after declared fields.
41
42
43 class arrayOopDesc : public oopDesc {
44 friend class VMStructs;
45 friend class arrayOopDescTest;
46
47 // Interpreter/Compiler offsets
48
49 // Header size computation.
50 // The header is considered the oop part of this type plus the length.
|