src/share/vm/oops/typeArrayOop.hpp

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2007, 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. --- 1,7 ---- /* ! * Copyright (c) 1997, 2010, 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.
*** 20,29 **** --- 20,53 ---- * or visit www.oracle.com if you need additional information or have any * questions. * */ + #ifndef SHARE_VM_OOPS_TYPEARRAYOOP_HPP + #define SHARE_VM_OOPS_TYPEARRAYOOP_HPP + + #include "oops/arrayOop.hpp" + #include "oops/typeArrayKlass.hpp" + #ifdef TARGET_OS_ARCH_linux_x86 + # include "orderAccess_linux_x86.inline.hpp" + #endif + #ifdef TARGET_OS_ARCH_linux_sparc + # include "orderAccess_linux_sparc.inline.hpp" + #endif + #ifdef TARGET_OS_ARCH_linux_zero + # include "orderAccess_linux_zero.inline.hpp" + #endif + #ifdef TARGET_OS_ARCH_solaris_x86 + # include "orderAccess_solaris_x86.inline.hpp" + #endif + #ifdef TARGET_OS_ARCH_solaris_sparc + # include "orderAccess_solaris_sparc.inline.hpp" + #endif + #ifdef TARGET_OS_ARCH_windows_x86 + # include "orderAccess_windows_x86.inline.hpp" + #endif + // A typeArrayOop is an array containing basic types (non oop elements). // It is used for arrays of {characters, singles, doubles, bytes, shorts, integers, longs} #include <limits.h> class typeArrayOopDesc : public arrayOopDesc {
*** 139,143 **** --- 163,169 ---- int object_size() { typeArrayKlass* tk = typeArrayKlass::cast(klass()); return object_size(tk->layout_helper(), length()); } }; + + #endif // SHARE_VM_OOPS_TYPEARRAYOOP_HPP