annotate src/share/vm/oops/typeArrayOop.hpp @ 14649:f6301b007a16

6498581: ThreadInterruptTest3 produces wrong output on Windows Summary: There is race condition between os::interrupt and os::is_interrupted on Windows. In JVM_Sleep(Thread.sleep), check if thread gets interrupted, it may see interrupted but not really interrupted so cause spurious waking up (early return from sleep). Fix by checking if interrupt event really gets set thus prevent false return. For intrinsic of _isInterrupted, on Windows, go fastpath only on bit not set. Reviewed-by: acorn, kvn Contributed-by: david.holmes@oracle.com, yumin.qi@oracle.com
author minqi
date Wed, 26 Feb 2014 15:20:41 -0800
parents bdd155477289
children 4ca6dc0799b6 ce8f6bb717c9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 /*
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 3960
diff changeset
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
4 *
a61af66fc99e Initial load
duke
parents:
diff changeset
5 * This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
6 * under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
7 * published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
8 *
a61af66fc99e Initial load
duke
parents:
diff changeset
9 * This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
12 * version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
13 * accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
14 *
a61af66fc99e Initial load
duke
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
16 * 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
18 *
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
20 * or visit www.oracle.com if you need additional information or have any
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
21 * questions.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
22 *
a61af66fc99e Initial load
duke
parents:
diff changeset
23 */
a61af66fc99e Initial load
duke
parents:
diff changeset
24
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
25 #ifndef SHARE_VM_OOPS_TYPEARRAYOOP_HPP
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
26 #define SHARE_VM_OOPS_TYPEARRAYOOP_HPP
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
27
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
28 #include "oops/arrayOop.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
29 #include "oops/typeArrayKlass.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
30 #ifdef TARGET_OS_ARCH_linux_x86
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
31 # include "orderAccess_linux_x86.inline.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
32 #endif
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
33 #ifdef TARGET_OS_ARCH_linux_sparc
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
34 # include "orderAccess_linux_sparc.inline.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
35 #endif
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
36 #ifdef TARGET_OS_ARCH_linux_zero
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
37 # include "orderAccess_linux_zero.inline.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
38 #endif
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
39 #ifdef TARGET_OS_ARCH_solaris_x86
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
40 # include "orderAccess_solaris_x86.inline.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
41 #endif
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
42 #ifdef TARGET_OS_ARCH_solaris_sparc
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
43 # include "orderAccess_solaris_sparc.inline.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
44 #endif
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
45 #ifdef TARGET_OS_ARCH_windows_x86
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
46 # include "orderAccess_windows_x86.inline.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
47 #endif
2192
b92c45f2bc75 7016023: Enable building ARM and PPC from src/closed repository
bobv
parents: 1972
diff changeset
48 #ifdef TARGET_OS_ARCH_linux_arm
b92c45f2bc75 7016023: Enable building ARM and PPC from src/closed repository
bobv
parents: 1972
diff changeset
49 # include "orderAccess_linux_arm.inline.hpp"
b92c45f2bc75 7016023: Enable building ARM and PPC from src/closed repository
bobv
parents: 1972
diff changeset
50 #endif
b92c45f2bc75 7016023: Enable building ARM and PPC from src/closed repository
bobv
parents: 1972
diff changeset
51 #ifdef TARGET_OS_ARCH_linux_ppc
b92c45f2bc75 7016023: Enable building ARM and PPC from src/closed repository
bobv
parents: 1972
diff changeset
52 # include "orderAccess_linux_ppc.inline.hpp"
b92c45f2bc75 7016023: Enable building ARM and PPC from src/closed repository
bobv
parents: 1972
diff changeset
53 #endif
14411
bdd155477289 8023033: PPC64 (part 13): basic changes for AIX
goetz
parents: 6831
diff changeset
54 #ifdef TARGET_OS_ARCH_aix_ppc
bdd155477289 8023033: PPC64 (part 13): basic changes for AIX
goetz
parents: 6831
diff changeset
55 # include "orderAccess_aix_ppc.inline.hpp"
bdd155477289 8023033: PPC64 (part 13): basic changes for AIX
goetz
parents: 6831
diff changeset
56 #endif
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2426
diff changeset
57 #ifdef TARGET_OS_ARCH_bsd_x86
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2426
diff changeset
58 # include "orderAccess_bsd_x86.inline.hpp"
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2426
diff changeset
59 #endif
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2426
diff changeset
60 #ifdef TARGET_OS_ARCH_bsd_zero
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2426
diff changeset
61 # include "orderAccess_bsd_zero.inline.hpp"
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2426
diff changeset
62 #endif
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
63
0
a61af66fc99e Initial load
duke
parents:
diff changeset
64 // A typeArrayOop is an array containing basic types (non oop elements).
a61af66fc99e Initial load
duke
parents:
diff changeset
65 // It is used for arrays of {characters, singles, doubles, bytes, shorts, integers, longs}
a61af66fc99e Initial load
duke
parents:
diff changeset
66 #include <limits.h>
a61af66fc99e Initial load
duke
parents:
diff changeset
67
a61af66fc99e Initial load
duke
parents:
diff changeset
68 class typeArrayOopDesc : public arrayOopDesc {
a61af66fc99e Initial load
duke
parents:
diff changeset
69 protected:
a61af66fc99e Initial load
duke
parents:
diff changeset
70 jchar* char_base() const { return (jchar*) base(T_CHAR); }
a61af66fc99e Initial load
duke
parents:
diff changeset
71 jboolean* bool_base() const { return (jboolean*)base(T_BOOLEAN); }
a61af66fc99e Initial load
duke
parents:
diff changeset
72 jbyte* byte_base() const { return (jbyte*) base(T_BYTE); }
a61af66fc99e Initial load
duke
parents:
diff changeset
73 jint* int_base() const { return (jint*) base(T_INT); }
a61af66fc99e Initial load
duke
parents:
diff changeset
74 jlong* long_base() const { return (jlong*) base(T_LONG); }
a61af66fc99e Initial load
duke
parents:
diff changeset
75 jshort* short_base() const { return (jshort*) base(T_SHORT); }
a61af66fc99e Initial load
duke
parents:
diff changeset
76 jfloat* float_base() const { return (jfloat*) base(T_FLOAT); }
a61af66fc99e Initial load
duke
parents:
diff changeset
77 jdouble* double_base() const { return (jdouble*) base(T_DOUBLE); }
a61af66fc99e Initial load
duke
parents:
diff changeset
78
6831
d8ce2825b193 8000213: NPG: Should have renamed arrayKlass and typeArrayKlass
coleenp
parents: 6725
diff changeset
79 friend class TypeArrayKlass;
0
a61af66fc99e Initial load
duke
parents:
diff changeset
80
a61af66fc99e Initial load
duke
parents:
diff changeset
81 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
82 jbyte* byte_at_addr(int which) const {
a61af66fc99e Initial load
duke
parents:
diff changeset
83 assert(is_within_bounds(which), "index out of bounds");
a61af66fc99e Initial load
duke
parents:
diff changeset
84 return &byte_base()[which];
a61af66fc99e Initial load
duke
parents:
diff changeset
85 }
a61af66fc99e Initial load
duke
parents:
diff changeset
86
a61af66fc99e Initial load
duke
parents:
diff changeset
87 jboolean* bool_at_addr(int which) const {
a61af66fc99e Initial load
duke
parents:
diff changeset
88 assert(is_within_bounds(which), "index out of bounds");
a61af66fc99e Initial load
duke
parents:
diff changeset
89 return &bool_base()[which];
a61af66fc99e Initial load
duke
parents:
diff changeset
90 }
a61af66fc99e Initial load
duke
parents:
diff changeset
91
a61af66fc99e Initial load
duke
parents:
diff changeset
92 jchar* char_at_addr(int which) const {
a61af66fc99e Initial load
duke
parents:
diff changeset
93 assert(is_within_bounds(which), "index out of bounds");
a61af66fc99e Initial load
duke
parents:
diff changeset
94 return &char_base()[which];
a61af66fc99e Initial load
duke
parents:
diff changeset
95 }
a61af66fc99e Initial load
duke
parents:
diff changeset
96
a61af66fc99e Initial load
duke
parents:
diff changeset
97 jint* int_at_addr(int which) const {
a61af66fc99e Initial load
duke
parents:
diff changeset
98 assert(is_within_bounds(which), "index out of bounds");
a61af66fc99e Initial load
duke
parents:
diff changeset
99 return &int_base()[which];
a61af66fc99e Initial load
duke
parents:
diff changeset
100 }
a61af66fc99e Initial load
duke
parents:
diff changeset
101
a61af66fc99e Initial load
duke
parents:
diff changeset
102 jshort* short_at_addr(int which) const {
a61af66fc99e Initial load
duke
parents:
diff changeset
103 assert(is_within_bounds(which), "index out of bounds");
a61af66fc99e Initial load
duke
parents:
diff changeset
104 return &short_base()[which];
a61af66fc99e Initial load
duke
parents:
diff changeset
105 }
a61af66fc99e Initial load
duke
parents:
diff changeset
106
a61af66fc99e Initial load
duke
parents:
diff changeset
107 jushort* ushort_at_addr(int which) const { // for field descriptor arrays
a61af66fc99e Initial load
duke
parents:
diff changeset
108 assert(is_within_bounds(which), "index out of bounds");
a61af66fc99e Initial load
duke
parents:
diff changeset
109 return (jushort*) &short_base()[which];
a61af66fc99e Initial load
duke
parents:
diff changeset
110 }
a61af66fc99e Initial load
duke
parents:
diff changeset
111
a61af66fc99e Initial load
duke
parents:
diff changeset
112 jlong* long_at_addr(int which) const {
a61af66fc99e Initial load
duke
parents:
diff changeset
113 assert(is_within_bounds(which), "index out of bounds");
a61af66fc99e Initial load
duke
parents:
diff changeset
114 return &long_base()[which];
a61af66fc99e Initial load
duke
parents:
diff changeset
115 }
a61af66fc99e Initial load
duke
parents:
diff changeset
116
a61af66fc99e Initial load
duke
parents:
diff changeset
117 jfloat* float_at_addr(int which) const {
a61af66fc99e Initial load
duke
parents:
diff changeset
118 assert(is_within_bounds(which), "index out of bounds");
a61af66fc99e Initial load
duke
parents:
diff changeset
119 return &float_base()[which];
a61af66fc99e Initial load
duke
parents:
diff changeset
120 }
a61af66fc99e Initial load
duke
parents:
diff changeset
121
a61af66fc99e Initial load
duke
parents:
diff changeset
122 jdouble* double_at_addr(int which) const {
a61af66fc99e Initial load
duke
parents:
diff changeset
123 assert(is_within_bounds(which), "index out of bounds");
a61af66fc99e Initial load
duke
parents:
diff changeset
124 return &double_base()[which];
a61af66fc99e Initial load
duke
parents:
diff changeset
125 }
a61af66fc99e Initial load
duke
parents:
diff changeset
126
a61af66fc99e Initial load
duke
parents:
diff changeset
127 jbyte byte_at(int which) const { return *byte_at_addr(which); }
a61af66fc99e Initial load
duke
parents:
diff changeset
128 void byte_at_put(int which, jbyte contents) { *byte_at_addr(which) = contents; }
a61af66fc99e Initial load
duke
parents:
diff changeset
129
a61af66fc99e Initial load
duke
parents:
diff changeset
130 jboolean bool_at(int which) const { return *bool_at_addr(which); }
a61af66fc99e Initial load
duke
parents:
diff changeset
131 void bool_at_put(int which, jboolean contents) { *bool_at_addr(which) = contents; }
a61af66fc99e Initial load
duke
parents:
diff changeset
132
a61af66fc99e Initial load
duke
parents:
diff changeset
133 jchar char_at(int which) const { return *char_at_addr(which); }
a61af66fc99e Initial load
duke
parents:
diff changeset
134 void char_at_put(int which, jchar contents) { *char_at_addr(which) = contents; }
a61af66fc99e Initial load
duke
parents:
diff changeset
135
a61af66fc99e Initial load
duke
parents:
diff changeset
136 jint int_at(int which) const { return *int_at_addr(which); }
a61af66fc99e Initial load
duke
parents:
diff changeset
137 void int_at_put(int which, jint contents) { *int_at_addr(which) = contents; }
a61af66fc99e Initial load
duke
parents:
diff changeset
138
a61af66fc99e Initial load
duke
parents:
diff changeset
139 jshort short_at(int which) const { return *short_at_addr(which); }
a61af66fc99e Initial load
duke
parents:
diff changeset
140 void short_at_put(int which, jshort contents) { *short_at_addr(which) = contents; }
a61af66fc99e Initial load
duke
parents:
diff changeset
141
a61af66fc99e Initial load
duke
parents:
diff changeset
142 jushort ushort_at(int which) const { return *ushort_at_addr(which); }
a61af66fc99e Initial load
duke
parents:
diff changeset
143 void ushort_at_put(int which, jushort contents) { *ushort_at_addr(which) = contents; }
a61af66fc99e Initial load
duke
parents:
diff changeset
144
a61af66fc99e Initial load
duke
parents:
diff changeset
145 jlong long_at(int which) const { return *long_at_addr(which); }
a61af66fc99e Initial load
duke
parents:
diff changeset
146 void long_at_put(int which, jlong contents) { *long_at_addr(which) = contents; }
a61af66fc99e Initial load
duke
parents:
diff changeset
147
a61af66fc99e Initial load
duke
parents:
diff changeset
148 jfloat float_at(int which) const { return *float_at_addr(which); }
a61af66fc99e Initial load
duke
parents:
diff changeset
149 void float_at_put(int which, jfloat contents) { *float_at_addr(which) = contents; }
a61af66fc99e Initial load
duke
parents:
diff changeset
150
a61af66fc99e Initial load
duke
parents:
diff changeset
151 jdouble double_at(int which) const { return *double_at_addr(which); }
a61af66fc99e Initial load
duke
parents:
diff changeset
152 void double_at_put(int which, jdouble contents) { *double_at_addr(which) = contents; }
a61af66fc99e Initial load
duke
parents:
diff changeset
153
a61af66fc99e Initial load
duke
parents:
diff changeset
154 jbyte byte_at_acquire(int which) const { return OrderAccess::load_acquire(byte_at_addr(which)); }
a61af66fc99e Initial load
duke
parents:
diff changeset
155 void release_byte_at_put(int which, jbyte contents) { OrderAccess::release_store(byte_at_addr(which), contents); }
a61af66fc99e Initial load
duke
parents:
diff changeset
156
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 3960
diff changeset
157 // Java thinks metadata arrays are just arrays of either long or int, since
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 3960
diff changeset
158 // there doesn't seem to be T_ADDRESS, so this is a bit of unfortunate
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 3960
diff changeset
159 // casting
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 3960
diff changeset
160 #ifdef _LP64
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 3960
diff changeset
161 Metadata* metadata_at(int which) const {
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 3960
diff changeset
162 return (Metadata*)*long_at_addr(which); }
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 3960
diff changeset
163 void metadata_at_put(int which, Metadata* contents) {
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 3960
diff changeset
164 *long_at_addr(which) = (long)contents;
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 3960
diff changeset
165 }
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 3960
diff changeset
166 #else
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 3960
diff changeset
167 Metadata* metadata_at(int which) const {
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 3960
diff changeset
168 return (Metadata*)*int_at_addr(which); }
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 3960
diff changeset
169 void metadata_at_put(int which, Metadata* contents) {
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 3960
diff changeset
170 *int_at_addr(which) = (int)contents;
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 3960
diff changeset
171 }
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 3960
diff changeset
172 #endif // _LP64
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 3960
diff changeset
173
0
a61af66fc99e Initial load
duke
parents:
diff changeset
174 // Sizing
a61af66fc99e Initial load
duke
parents:
diff changeset
175
a61af66fc99e Initial load
duke
parents:
diff changeset
176 // Returns the number of words necessary to hold an array of "len"
a61af66fc99e Initial load
duke
parents:
diff changeset
177 // elements each of the given "byte_size".
a61af66fc99e Initial load
duke
parents:
diff changeset
178 private:
a61af66fc99e Initial load
duke
parents:
diff changeset
179 static int object_size(int lh, int length) {
a61af66fc99e Initial load
duke
parents:
diff changeset
180 int instance_header_size = Klass::layout_helper_header_size(lh);
a61af66fc99e Initial load
duke
parents:
diff changeset
181 int element_shift = Klass::layout_helper_log2_element_size(lh);
a61af66fc99e Initial load
duke
parents:
diff changeset
182 DEBUG_ONLY(BasicType etype = Klass::layout_helper_element_type(lh));
a61af66fc99e Initial load
duke
parents:
diff changeset
183 assert(length <= arrayOopDesc::max_array_length(etype), "no overflow");
a61af66fc99e Initial load
duke
parents:
diff changeset
184
a61af66fc99e Initial load
duke
parents:
diff changeset
185 julong size_in_bytes = length;
a61af66fc99e Initial load
duke
parents:
diff changeset
186 size_in_bytes <<= element_shift;
a61af66fc99e Initial load
duke
parents:
diff changeset
187 size_in_bytes += instance_header_size;
a61af66fc99e Initial load
duke
parents:
diff changeset
188 julong size_in_words = ((size_in_bytes + (HeapWordSize-1)) >> LogHeapWordSize);
a61af66fc99e Initial load
duke
parents:
diff changeset
189 assert(size_in_words <= (julong)max_jint, "no overflow");
a61af66fc99e Initial load
duke
parents:
diff changeset
190
a61af66fc99e Initial load
duke
parents:
diff changeset
191 return align_object_size((intptr_t)size_in_words);
a61af66fc99e Initial load
duke
parents:
diff changeset
192 }
a61af66fc99e Initial load
duke
parents:
diff changeset
193
a61af66fc99e Initial load
duke
parents:
diff changeset
194 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
195 int object_size() {
6831
d8ce2825b193 8000213: NPG: Should have renamed arrayKlass and typeArrayKlass
coleenp
parents: 6725
diff changeset
196 TypeArrayKlass* tk = TypeArrayKlass::cast(klass());
0
a61af66fc99e Initial load
duke
parents:
diff changeset
197 return object_size(tk->layout_helper(), length());
a61af66fc99e Initial load
duke
parents:
diff changeset
198 }
a61af66fc99e Initial load
duke
parents:
diff changeset
199 };
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
200
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
201 #endif // SHARE_VM_OOPS_TYPEARRAYOOP_HPP