Mercurial > hg > graal-compiler
annotate agent/src/share/classes/sun/jvm/hotspot/oops/InstanceKlass.java @ 8104:f16e75e0cf11
8000797: NPG: is_pseudo_string_at() doesn't work
Summary: Zero Symbol* for constant pool strings to indicate pseudo_strings (objects that aren't strings). Clean up JVM_CONSTANT_Object and unused flags.
Reviewed-by: sspitsyn, jrose
author | coleenp |
---|---|
date | Fri, 22 Feb 2013 08:36:42 -0500 |
parents | e94ed1591b42 |
children | 6bd680e9ea35 |
rev | line source |
---|---|
0 | 1 /* |
5998
49036505ab5f
7154670: The instanceKlass _implementors[] and _nof_implementors are not needed for non-interface klass.
jiangli
parents:
5967
diff
changeset
|
2 * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. |
0 | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | |
5 * This code is free software; you can redistribute it and/or modify it | |
6 * under the terms of the GNU General Public License version 2 only, as | |
7 * published by the Free Software Foundation. | |
8 * | |
9 * This code is distributed in the hope that it will be useful, but WITHOUT | |
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 * | |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
196
diff
changeset
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
196
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:
196
diff
changeset
|
21 * questions. |
0 | 22 * |
23 */ | |
24 | |
25 package sun.jvm.hotspot.oops; | |
26 | |
27 import java.io.*; | |
28 import java.util.*; | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
29 import sun.jvm.hotspot.classfile.ClassLoaderData; |
0 | 30 import sun.jvm.hotspot.debugger.*; |
31 import sun.jvm.hotspot.memory.*; | |
32 import sun.jvm.hotspot.runtime.*; | |
33 import sun.jvm.hotspot.types.*; | |
34 import sun.jvm.hotspot.utilities.*; | |
35 | |
36 // An InstanceKlass is the VM level representation of a Java class. | |
37 | |
38 public class InstanceKlass extends Klass { | |
39 static { | |
40 VM.registerVMInitializedObserver(new Observer() { | |
41 public void update(Observable o, Object data) { | |
42 initialize(VM.getVM().getTypeDataBase()); | |
43 } | |
44 }); | |
45 } | |
46 | |
47 // field offset constants | |
3962
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
48 private static int ACCESS_FLAGS_OFFSET; |
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
49 private static int NAME_INDEX_OFFSET; |
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
50 private static int SIGNATURE_INDEX_OFFSET; |
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
51 private static int INITVAL_INDEX_OFFSET; |
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
52 private static int LOW_OFFSET; |
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
53 private static int HIGH_OFFSET; |
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
54 private static int FIELD_SLOTS; |
7587 | 55 private static short FIELDINFO_TAG_SIZE; |
7620
e94ed1591b42
8006403: Regression: jstack failed due to the FieldInfo regression in SA
sla
parents:
7587
diff
changeset
|
56 private static short FIELDINFO_TAG_MASK; |
7587 | 57 private static short FIELDINFO_TAG_OFFSET; |
0 | 58 |
59 // ClassState constants | |
60 private static int CLASS_STATE_ALLOCATED; | |
61 private static int CLASS_STATE_LOADED; | |
62 private static int CLASS_STATE_LINKED; | |
63 private static int CLASS_STATE_BEING_INITIALIZED; | |
64 private static int CLASS_STATE_FULLY_INITIALIZED; | |
65 private static int CLASS_STATE_INITIALIZATION_ERROR; | |
66 | |
67 private static synchronized void initialize(TypeDataBase db) throws WrongTypeException { | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
68 Type type = db.lookupType("InstanceKlass"); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
69 arrayKlasses = new MetadataField(type.getAddressField("_array_klasses"), 0); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
70 methods = type.getAddressField("_methods"); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
71 methodOrdering = type.getAddressField("_method_ordering"); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
72 localInterfaces = type.getAddressField("_local_interfaces"); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
73 transitiveInterfaces = type.getAddressField("_transitive_interfaces"); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
74 fields = type.getAddressField("_fields"); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
75 javaFieldsCount = new CIntField(type.getCIntegerField("_java_fields_count"), 0); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
76 constants = new MetadataField(type.getAddressField("_constants"), 0); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
77 classLoaderData = type.getAddressField("_class_loader_data"); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
78 protectionDomain = new OopField(type.getOopField("_protection_domain"), 0); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
79 signers = new OopField(type.getOopField("_signers"), 0); |
2177
3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
1552
diff
changeset
|
80 sourceFileName = type.getAddressField("_source_file_name"); |
3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
1552
diff
changeset
|
81 sourceDebugExtension = type.getAddressField("_source_debug_extension"); |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
82 innerClasses = type.getAddressField("_inner_classes"); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
83 nonstaticFieldSize = new CIntField(type.getCIntegerField("_nonstatic_field_size"), 0); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
84 staticFieldSize = new CIntField(type.getCIntegerField("_static_field_size"), 0); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
85 staticOopFieldCount = new CIntField(type.getCIntegerField("_static_oop_field_count"), 0); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
86 nonstaticOopMapSize = new CIntField(type.getCIntegerField("_nonstatic_oop_map_size"), 0); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
87 isMarkedDependent = new CIntField(type.getCIntegerField("_is_marked_dependent"), 0); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
88 initState = new CIntField(type.getCIntegerField("_init_state"), 0); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
89 vtableLen = new CIntField(type.getCIntegerField("_vtable_len"), 0); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
90 itableLen = new CIntField(type.getCIntegerField("_itable_len"), 0); |
0 | 91 breakpoints = type.getAddressField("_breakpoints"); |
2177
3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
1552
diff
changeset
|
92 genericSignature = type.getAddressField("_generic_signature"); |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
93 majorVersion = new CIntField(type.getCIntegerField("_major_version"), 0); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
94 minorVersion = new CIntField(type.getCIntegerField("_minor_version"), 0); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
95 headerSize = Oop.alignObjectOffset(type.getSize()); |
0 | 96 |
97 // read field offset constants | |
3938 | 98 ACCESS_FLAGS_OFFSET = db.lookupIntConstant("FieldInfo::access_flags_offset").intValue(); |
99 NAME_INDEX_OFFSET = db.lookupIntConstant("FieldInfo::name_index_offset").intValue(); | |
100 SIGNATURE_INDEX_OFFSET = db.lookupIntConstant("FieldInfo::signature_index_offset").intValue(); | |
101 INITVAL_INDEX_OFFSET = db.lookupIntConstant("FieldInfo::initval_index_offset").intValue(); | |
7587 | 102 LOW_OFFSET = db.lookupIntConstant("FieldInfo::low_packed_offset").intValue(); |
103 HIGH_OFFSET = db.lookupIntConstant("FieldInfo::high_packed_offset").intValue(); | |
3938 | 104 FIELD_SLOTS = db.lookupIntConstant("FieldInfo::field_slots").intValue(); |
7587 | 105 FIELDINFO_TAG_SIZE = db.lookupIntConstant("FIELDINFO_TAG_SIZE").shortValue(); |
7620
e94ed1591b42
8006403: Regression: jstack failed due to the FieldInfo regression in SA
sla
parents:
7587
diff
changeset
|
106 FIELDINFO_TAG_MASK = db.lookupIntConstant("FIELDINFO_TAG_MASK").shortValue(); |
7587 | 107 FIELDINFO_TAG_OFFSET = db.lookupIntConstant("FIELDINFO_TAG_OFFSET").shortValue(); |
108 | |
0 | 109 // read ClassState constants |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
110 CLASS_STATE_ALLOCATED = db.lookupIntConstant("InstanceKlass::allocated").intValue(); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
111 CLASS_STATE_LOADED = db.lookupIntConstant("InstanceKlass::loaded").intValue(); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
112 CLASS_STATE_LINKED = db.lookupIntConstant("InstanceKlass::linked").intValue(); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
113 CLASS_STATE_BEING_INITIALIZED = db.lookupIntConstant("InstanceKlass::being_initialized").intValue(); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
114 CLASS_STATE_FULLY_INITIALIZED = db.lookupIntConstant("InstanceKlass::fully_initialized").intValue(); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
115 CLASS_STATE_INITIALIZATION_ERROR = db.lookupIntConstant("InstanceKlass::initialization_error").intValue(); |
0 | 116 |
117 } | |
118 | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
119 public InstanceKlass(Address addr) { |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
120 super(addr); |
3962
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
121 if (getJavaFieldsCount() != getAllFieldsCount()) { |
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
122 // Exercise the injected field logic |
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
123 for (int i = getJavaFieldsCount(); i < getAllFieldsCount(); i++) { |
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
124 getFieldName(i); |
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
125 getFieldSignature(i); |
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
126 } |
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
127 } |
0 | 128 } |
129 | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
130 private static MetadataField arrayKlasses; |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
131 private static AddressField methods; |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
132 private static AddressField methodOrdering; |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
133 private static AddressField localInterfaces; |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
134 private static AddressField transitiveInterfaces; |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
135 private static AddressField fields; |
3938 | 136 private static CIntField javaFieldsCount; |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
137 private static MetadataField constants; |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
138 private static AddressField classLoaderData; |
0 | 139 private static OopField protectionDomain; |
140 private static OopField signers; | |
2177
3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
1552
diff
changeset
|
141 private static AddressField sourceFileName; |
3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
1552
diff
changeset
|
142 private static AddressField sourceDebugExtension; |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
143 private static AddressField innerClasses; |
0 | 144 private static CIntField nonstaticFieldSize; |
145 private static CIntField staticFieldSize; | |
2376
c7f3d0b4570f
7017732: move static fields into Class to prepare for perm gen removal
never
parents:
2177
diff
changeset
|
146 private static CIntField staticOopFieldCount; |
0 | 147 private static CIntField nonstaticOopMapSize; |
4772
8f8b94305aff
7129240: backout fix for 7102776 until 7128770 is resolved
dcubed
parents:
4737
diff
changeset
|
148 private static CIntField isMarkedDependent; |
0 | 149 private static CIntField initState; |
150 private static CIntField vtableLen; | |
151 private static CIntField itableLen; | |
152 private static AddressField breakpoints; | |
2177
3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
1552
diff
changeset
|
153 private static AddressField genericSignature; |
0 | 154 private static CIntField majorVersion; |
155 private static CIntField minorVersion; | |
156 | |
157 // type safe enum for ClassState from instanceKlass.hpp | |
158 public static class ClassState { | |
159 public static final ClassState ALLOCATED = new ClassState("allocated"); | |
160 public static final ClassState LOADED = new ClassState("loaded"); | |
161 public static final ClassState LINKED = new ClassState("linked"); | |
162 public static final ClassState BEING_INITIALIZED = new ClassState("beingInitialized"); | |
163 public static final ClassState FULLY_INITIALIZED = new ClassState("fullyInitialized"); | |
164 public static final ClassState INITIALIZATION_ERROR = new ClassState("initializationError"); | |
165 | |
166 private ClassState(String value) { | |
167 this.value = value; | |
168 } | |
169 | |
170 public String toString() { | |
171 return value; | |
172 } | |
173 | |
174 private String value; | |
175 } | |
176 | |
3939 | 177 public int getInitStateAsInt() { return (int) initState.getValue(this); } |
0 | 178 public ClassState getInitState() { |
179 int state = getInitStateAsInt(); | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
180 if (state == CLASS_STATE_ALLOCATED) { |
0 | 181 return ClassState.ALLOCATED; |
182 } else if (state == CLASS_STATE_LOADED) { | |
183 return ClassState.LOADED; | |
184 } else if (state == CLASS_STATE_LINKED) { | |
185 return ClassState.LINKED; | |
186 } else if (state == CLASS_STATE_BEING_INITIALIZED) { | |
187 return ClassState.BEING_INITIALIZED; | |
188 } else if (state == CLASS_STATE_FULLY_INITIALIZED) { | |
189 return ClassState.FULLY_INITIALIZED; | |
190 } else if (state == CLASS_STATE_INITIALIZATION_ERROR) { | |
191 return ClassState.INITIALIZATION_ERROR; | |
192 } else { | |
193 throw new RuntimeException("should not reach here"); | |
194 } | |
195 } | |
196 | |
197 // initialization state quaries | |
198 public boolean isLoaded() { | |
199 return getInitStateAsInt() >= CLASS_STATE_LOADED; | |
200 } | |
201 | |
202 public boolean isLinked() { | |
203 return getInitStateAsInt() >= CLASS_STATE_LINKED; | |
204 } | |
205 | |
206 public boolean isInitialized() { | |
207 return getInitStateAsInt() == CLASS_STATE_FULLY_INITIALIZED; | |
208 } | |
209 | |
210 public boolean isNotInitialized() { | |
211 return getInitStateAsInt() < CLASS_STATE_BEING_INITIALIZED; | |
212 } | |
213 | |
214 public boolean isBeingInitialized() { | |
215 return getInitStateAsInt() == CLASS_STATE_BEING_INITIALIZED; | |
216 } | |
217 | |
218 public boolean isInErrorState() { | |
219 return getInitStateAsInt() == CLASS_STATE_INITIALIZATION_ERROR; | |
220 } | |
221 | |
222 public int getClassStatus() { | |
223 int result = 0; | |
224 if (isLinked()) { | |
225 result |= JVMDIClassStatus.VERIFIED | JVMDIClassStatus.PREPARED; | |
226 } | |
227 | |
228 if (isInitialized()) { | |
229 if (Assert.ASSERTS_ENABLED) { | |
230 Assert.that(isLinked(), "Class status is not consistent"); | |
231 } | |
232 result |= JVMDIClassStatus.INITIALIZED; | |
233 } | |
234 | |
235 if (isInErrorState()) { | |
236 result |= JVMDIClassStatus.ERROR; | |
237 } | |
238 return result; | |
239 } | |
240 | |
241 // Byteside of the header | |
242 private static long headerSize; | |
243 | |
2411
63997f575155
7031614: jmap -permstat fails with java.lang.InternalError in sun.jvm.hotspot.oops.OopField.getValue
never
parents:
2376
diff
changeset
|
244 public long getObjectSize(Oop object) { |
63997f575155
7031614: jmap -permstat fails with java.lang.InternalError in sun.jvm.hotspot.oops.OopField.getValue
never
parents:
2376
diff
changeset
|
245 return getSizeHelper() * VM.getVM().getAddressSize(); |
63997f575155
7031614: jmap -permstat fails with java.lang.InternalError in sun.jvm.hotspot.oops.OopField.getValue
never
parents:
2376
diff
changeset
|
246 } |
63997f575155
7031614: jmap -permstat fails with java.lang.InternalError in sun.jvm.hotspot.oops.OopField.getValue
never
parents:
2376
diff
changeset
|
247 |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
248 public long getSize() { |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
249 return Oop.alignObjectSize(getHeaderSize() + Oop.alignObjectOffset(getVtableLen()) + |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
250 Oop.alignObjectOffset(getItableLen()) + Oop.alignObjectOffset(getNonstaticOopMapSize())); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
251 } |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
252 |
0 | 253 public static long getHeaderSize() { return headerSize; } |
254 | |
3938 | 255 public short getFieldAccessFlags(int index) { |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
256 return getFields().at(index * FIELD_SLOTS + ACCESS_FLAGS_OFFSET); |
3938 | 257 } |
258 | |
3962
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
259 public short getFieldNameIndex(int index) { |
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
260 if (index >= getJavaFieldsCount()) throw new IndexOutOfBoundsException("not a Java field;"); |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
261 return getFields().at(index * FIELD_SLOTS + NAME_INDEX_OFFSET); |
3962
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
262 } |
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
263 |
3938 | 264 public Symbol getFieldName(int index) { |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
265 int nameIndex = getFields().at(index * FIELD_SLOTS + NAME_INDEX_OFFSET); |
3962
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
266 if (index < getJavaFieldsCount()) { |
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
267 return getConstants().getSymbolAt(nameIndex); |
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
268 } else { |
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
269 return vmSymbols.symbolAt(nameIndex); |
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
270 } |
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
271 } |
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
272 |
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
273 public short getFieldSignatureIndex(int index) { |
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
274 if (index >= getJavaFieldsCount()) throw new IndexOutOfBoundsException("not a Java field;"); |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
275 return getFields().at(index * FIELD_SLOTS + SIGNATURE_INDEX_OFFSET); |
3938 | 276 } |
277 | |
278 public Symbol getFieldSignature(int index) { | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
279 int signatureIndex = getFields().at(index * FIELD_SLOTS + SIGNATURE_INDEX_OFFSET); |
3962
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
280 if (index < getJavaFieldsCount()) { |
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
281 return getConstants().getSymbolAt(signatureIndex); |
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
282 } else { |
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
283 return vmSymbols.symbolAt(signatureIndex); |
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
284 } |
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
285 } |
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
286 |
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
287 public short getFieldGenericSignatureIndex(int index) { |
6972
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
288 // int len = getFields().length(); |
6100
71afdabfd05b
7168280: Eliminate the generic signature index slot from field array for field without generic signature.
jiangli
parents:
5998
diff
changeset
|
289 int allFieldsCount = getAllFieldsCount(); |
71afdabfd05b
7168280: Eliminate the generic signature index slot from field array for field without generic signature.
jiangli
parents:
5998
diff
changeset
|
290 int generic_signature_slot = allFieldsCount * FIELD_SLOTS; |
71afdabfd05b
7168280: Eliminate the generic signature index slot from field array for field without generic signature.
jiangli
parents:
5998
diff
changeset
|
291 for (int i = 0; i < allFieldsCount; i++) { |
71afdabfd05b
7168280: Eliminate the generic signature index slot from field array for field without generic signature.
jiangli
parents:
5998
diff
changeset
|
292 short flags = getFieldAccessFlags(i); |
71afdabfd05b
7168280: Eliminate the generic signature index slot from field array for field without generic signature.
jiangli
parents:
5998
diff
changeset
|
293 AccessFlags access = new AccessFlags(flags); |
71afdabfd05b
7168280: Eliminate the generic signature index slot from field array for field without generic signature.
jiangli
parents:
5998
diff
changeset
|
294 if (i == index) { |
71afdabfd05b
7168280: Eliminate the generic signature index slot from field array for field without generic signature.
jiangli
parents:
5998
diff
changeset
|
295 if (access.fieldHasGenericSignature()) { |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
296 return getFields().at(generic_signature_slot); |
6100
71afdabfd05b
7168280: Eliminate the generic signature index slot from field array for field without generic signature.
jiangli
parents:
5998
diff
changeset
|
297 } else { |
71afdabfd05b
7168280: Eliminate the generic signature index slot from field array for field without generic signature.
jiangli
parents:
5998
diff
changeset
|
298 return 0; |
71afdabfd05b
7168280: Eliminate the generic signature index slot from field array for field without generic signature.
jiangli
parents:
5998
diff
changeset
|
299 } |
71afdabfd05b
7168280: Eliminate the generic signature index slot from field array for field without generic signature.
jiangli
parents:
5998
diff
changeset
|
300 } else { |
71afdabfd05b
7168280: Eliminate the generic signature index slot from field array for field without generic signature.
jiangli
parents:
5998
diff
changeset
|
301 if (access.fieldHasGenericSignature()) { |
71afdabfd05b
7168280: Eliminate the generic signature index slot from field array for field without generic signature.
jiangli
parents:
5998
diff
changeset
|
302 generic_signature_slot ++; |
71afdabfd05b
7168280: Eliminate the generic signature index slot from field array for field without generic signature.
jiangli
parents:
5998
diff
changeset
|
303 } |
71afdabfd05b
7168280: Eliminate the generic signature index slot from field array for field without generic signature.
jiangli
parents:
5998
diff
changeset
|
304 } |
71afdabfd05b
7168280: Eliminate the generic signature index slot from field array for field without generic signature.
jiangli
parents:
5998
diff
changeset
|
305 } |
71afdabfd05b
7168280: Eliminate the generic signature index slot from field array for field without generic signature.
jiangli
parents:
5998
diff
changeset
|
306 return 0; |
3938 | 307 } |
308 | |
309 public Symbol getFieldGenericSignature(int index) { | |
3962
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
310 short genericSignatureIndex = getFieldGenericSignatureIndex(index); |
3938 | 311 if (genericSignatureIndex != 0) { |
312 return getConstants().getSymbolAt(genericSignatureIndex); | |
313 } | |
314 return null; | |
315 } | |
316 | |
3962
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
317 public short getFieldInitialValueIndex(int index) { |
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
318 if (index >= getJavaFieldsCount()) throw new IndexOutOfBoundsException("not a Java field;"); |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
319 return getFields().at(index * FIELD_SLOTS + INITVAL_INDEX_OFFSET); |
3962
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
320 } |
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
321 |
3938 | 322 public int getFieldOffset(int index) { |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
323 U2Array fields = getFields(); |
7587 | 324 short lo = fields.at(index * FIELD_SLOTS + LOW_OFFSET); |
325 short hi = fields.at(index * FIELD_SLOTS + HIGH_OFFSET); | |
7620
e94ed1591b42
8006403: Regression: jstack failed due to the FieldInfo regression in SA
sla
parents:
7587
diff
changeset
|
326 if ((lo & FIELDINFO_TAG_MASK) == FIELDINFO_TAG_OFFSET) { |
7587 | 327 return VM.getVM().buildIntFromShorts(lo, hi) >> FIELDINFO_TAG_SIZE; |
328 } | |
329 throw new RuntimeException("should not reach here"); | |
3938 | 330 } |
331 | |
0 | 332 // Accessors for declared fields |
333 public Klass getArrayKlasses() { return (Klass) arrayKlasses.getValue(this); } | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
334 public MethodArray getMethods() { return new MethodArray(methods.getValue(getAddress())); } |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
335 public KlassArray getLocalInterfaces() { return new KlassArray(localInterfaces.getValue(getAddress())); } |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
336 public KlassArray getTransitiveInterfaces() { return new KlassArray(transitiveInterfaces.getValue(getAddress())); } |
3938 | 337 public int getJavaFieldsCount() { return (int) javaFieldsCount.getValue(this); } |
6100
71afdabfd05b
7168280: Eliminate the generic signature index slot from field array for field without generic signature.
jiangli
parents:
5998
diff
changeset
|
338 public int getAllFieldsCount() { |
6972
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
339 int len = getFields().length(); |
6100
71afdabfd05b
7168280: Eliminate the generic signature index slot from field array for field without generic signature.
jiangli
parents:
5998
diff
changeset
|
340 int allFieldsCount = 0; |
71afdabfd05b
7168280: Eliminate the generic signature index slot from field array for field without generic signature.
jiangli
parents:
5998
diff
changeset
|
341 for (; allFieldsCount*FIELD_SLOTS < len; allFieldsCount++) { |
71afdabfd05b
7168280: Eliminate the generic signature index slot from field array for field without generic signature.
jiangli
parents:
5998
diff
changeset
|
342 short flags = getFieldAccessFlags(allFieldsCount); |
71afdabfd05b
7168280: Eliminate the generic signature index slot from field array for field without generic signature.
jiangli
parents:
5998
diff
changeset
|
343 AccessFlags access = new AccessFlags(flags); |
71afdabfd05b
7168280: Eliminate the generic signature index slot from field array for field without generic signature.
jiangli
parents:
5998
diff
changeset
|
344 if (access.fieldHasGenericSignature()) { |
71afdabfd05b
7168280: Eliminate the generic signature index slot from field array for field without generic signature.
jiangli
parents:
5998
diff
changeset
|
345 len --; |
71afdabfd05b
7168280: Eliminate the generic signature index slot from field array for field without generic signature.
jiangli
parents:
5998
diff
changeset
|
346 } |
71afdabfd05b
7168280: Eliminate the generic signature index slot from field array for field without generic signature.
jiangli
parents:
5998
diff
changeset
|
347 } |
71afdabfd05b
7168280: Eliminate the generic signature index slot from field array for field without generic signature.
jiangli
parents:
5998
diff
changeset
|
348 return allFieldsCount; |
71afdabfd05b
7168280: Eliminate the generic signature index slot from field array for field without generic signature.
jiangli
parents:
5998
diff
changeset
|
349 } |
0 | 350 public ConstantPool getConstants() { return (ConstantPool) constants.getValue(this); } |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
351 public ClassLoaderData getClassLoaderData() { return ClassLoaderData.instantiateWrapperFor(classLoaderData.getValue(getAddress())); } |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
352 public Oop getClassLoader() { return getClassLoaderData().getClassLoader(); } |
0 | 353 public Oop getProtectionDomain() { return protectionDomain.getValue(this); } |
354 public ObjArray getSigners() { return (ObjArray) signers.getValue(this); } | |
2177
3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
1552
diff
changeset
|
355 public Symbol getSourceFileName() { return getSymbol(sourceFileName); } |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
356 public String getSourceDebugExtension(){ return CStringUtilities.getString(sourceDebugExtension.getValue(getAddress())); } |
0 | 357 public long getNonstaticFieldSize() { return nonstaticFieldSize.getValue(this); } |
2376
c7f3d0b4570f
7017732: move static fields into Class to prepare for perm gen removal
never
parents:
2177
diff
changeset
|
358 public long getStaticOopFieldCount() { return staticOopFieldCount.getValue(this); } |
0 | 359 public long getNonstaticOopMapSize() { return nonstaticOopMapSize.getValue(this); } |
4772
8f8b94305aff
7129240: backout fix for 7102776 until 7128770 is resolved
dcubed
parents:
4737
diff
changeset
|
360 public boolean getIsMarkedDependent() { return isMarkedDependent.getValue(this) != 0; } |
0 | 361 public long getVtableLen() { return vtableLen.getValue(this); } |
362 public long getItableLen() { return itableLen.getValue(this); } | |
2177
3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
1552
diff
changeset
|
363 public Symbol getGenericSignature() { return getSymbol(genericSignature); } |
0 | 364 public long majorVersion() { return majorVersion.getValue(this); } |
365 public long minorVersion() { return minorVersion.getValue(this); } | |
366 | |
367 // "size helper" == instance size in words | |
368 public long getSizeHelper() { | |
369 int lh = getLayoutHelper(); | |
370 if (Assert.ASSERTS_ENABLED) { | |
371 Assert.that(lh > 0, "layout helper initialized for instance class"); | |
372 } | |
373 return lh / VM.getVM().getAddressSize(); | |
374 } | |
375 | |
376 // same as enum InnerClassAttributeOffset in VM code. | |
377 public static interface InnerClassAttributeOffset { | |
378 // from JVM spec. "InnerClasses" attribute | |
379 public static final int innerClassInnerClassInfoOffset = 0; | |
380 public static final int innerClassOuterClassInfoOffset = 1; | |
381 public static final int innerClassInnerNameOffset = 2; | |
382 public static final int innerClassAccessFlagsOffset = 3; | |
383 public static final int innerClassNextOffset = 4; | |
384 }; | |
385 | |
5967
f7c4174b33ba
7109878: The instanceKlass EnclosingMethhod attribute fields can be folded into the _inner_class field.
jiangli
parents:
4772
diff
changeset
|
386 public static interface EnclosingMethodAttributeOffset { |
f7c4174b33ba
7109878: The instanceKlass EnclosingMethhod attribute fields can be folded into the _inner_class field.
jiangli
parents:
4772
diff
changeset
|
387 public static final int enclosing_method_class_index_offset = 0; |
f7c4174b33ba
7109878: The instanceKlass EnclosingMethhod attribute fields can be folded into the _inner_class field.
jiangli
parents:
4772
diff
changeset
|
388 public static final int enclosing_method_method_index_offset = 1; |
f7c4174b33ba
7109878: The instanceKlass EnclosingMethhod attribute fields can be folded into the _inner_class field.
jiangli
parents:
4772
diff
changeset
|
389 public static final int enclosing_method_attribute_size = 2; |
f7c4174b33ba
7109878: The instanceKlass EnclosingMethhod attribute fields can be folded into the _inner_class field.
jiangli
parents:
4772
diff
changeset
|
390 }; |
f7c4174b33ba
7109878: The instanceKlass EnclosingMethhod attribute fields can be folded into the _inner_class field.
jiangli
parents:
4772
diff
changeset
|
391 |
0 | 392 // refer to compute_modifier_flags in VM code. |
393 public long computeModifierFlags() { | |
394 long access = getAccessFlags(); | |
395 // But check if it happens to be member class. | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
396 U2Array innerClassList = getInnerClasses(); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
397 int length = (innerClassList == null)? 0 : (int) innerClassList.length(); |
0 | 398 if (length > 0) { |
399 if (Assert.ASSERTS_ENABLED) { | |
5967
f7c4174b33ba
7109878: The instanceKlass EnclosingMethhod attribute fields can be folded into the _inner_class field.
jiangli
parents:
4772
diff
changeset
|
400 Assert.that(length % InnerClassAttributeOffset.innerClassNextOffset == 0 || |
f7c4174b33ba
7109878: The instanceKlass EnclosingMethhod attribute fields can be folded into the _inner_class field.
jiangli
parents:
4772
diff
changeset
|
401 length % InnerClassAttributeOffset.innerClassNextOffset == EnclosingMethodAttributeOffset.enclosing_method_attribute_size, |
f7c4174b33ba
7109878: The instanceKlass EnclosingMethhod attribute fields can be folded into the _inner_class field.
jiangli
parents:
4772
diff
changeset
|
402 "just checking"); |
0 | 403 } |
404 for (int i = 0; i < length; i += InnerClassAttributeOffset.innerClassNextOffset) { | |
5967
f7c4174b33ba
7109878: The instanceKlass EnclosingMethhod attribute fields can be folded into the _inner_class field.
jiangli
parents:
4772
diff
changeset
|
405 if (i == length - EnclosingMethodAttributeOffset.enclosing_method_attribute_size) { |
f7c4174b33ba
7109878: The instanceKlass EnclosingMethhod attribute fields can be folded into the _inner_class field.
jiangli
parents:
4772
diff
changeset
|
406 break; |
f7c4174b33ba
7109878: The instanceKlass EnclosingMethhod attribute fields can be folded into the _inner_class field.
jiangli
parents:
4772
diff
changeset
|
407 } |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
408 int ioff = innerClassList.at(i + |
0 | 409 InnerClassAttributeOffset.innerClassInnerClassInfoOffset); |
410 // 'ioff' can be zero. | |
411 // refer to JVM spec. section 4.7.5. | |
412 if (ioff != 0) { | |
413 // only look at classes that are already loaded | |
414 // since we are looking for the flags for our self. | |
2177
3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
1552
diff
changeset
|
415 ConstantPool.CPSlot classInfo = getConstants().getSlotAt(ioff); |
0 | 416 Symbol name = null; |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
417 if (classInfo.isResolved()) { |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
418 name = classInfo.getKlass().getName(); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
419 } else if (classInfo.isUnresolved()) { |
2177
3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
1552
diff
changeset
|
420 name = classInfo.getSymbol(); |
0 | 421 } else { |
422 throw new RuntimeException("should not reach here"); | |
423 } | |
424 | |
425 if (name.equals(getName())) { | |
426 // This is really a member class | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
427 access = innerClassList.at(i + |
0 | 428 InnerClassAttributeOffset.innerClassAccessFlagsOffset); |
429 break; | |
430 } | |
431 } | |
432 } // for inner classes | |
433 } | |
434 | |
435 // Remember to strip ACC_SUPER bit | |
436 return (access & (~JVM_ACC_SUPER)) & JVM_ACC_WRITTEN_FLAGS; | |
437 } | |
438 | |
439 | |
440 // whether given Symbol is name of an inner/nested Klass of this Klass? | |
441 // anonymous and local classes are excluded. | |
442 public boolean isInnerClassName(Symbol sym) { | |
443 return isInInnerClasses(sym, false); | |
444 } | |
445 | |
446 // whether given Symbol is name of an inner/nested Klass of this Klass? | |
447 // anonymous classes excluded, but local classes are included. | |
448 public boolean isInnerOrLocalClassName(Symbol sym) { | |
449 return isInInnerClasses(sym, true); | |
450 } | |
451 | |
452 private boolean isInInnerClasses(Symbol sym, boolean includeLocals) { | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
453 U2Array innerClassList = getInnerClasses(); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
454 int length = ( innerClassList == null)? 0 : (int) innerClassList.length(); |
0 | 455 if (length > 0) { |
456 if (Assert.ASSERTS_ENABLED) { | |
5967
f7c4174b33ba
7109878: The instanceKlass EnclosingMethhod attribute fields can be folded into the _inner_class field.
jiangli
parents:
4772
diff
changeset
|
457 Assert.that(length % InnerClassAttributeOffset.innerClassNextOffset == 0 || |
f7c4174b33ba
7109878: The instanceKlass EnclosingMethhod attribute fields can be folded into the _inner_class field.
jiangli
parents:
4772
diff
changeset
|
458 length % InnerClassAttributeOffset.innerClassNextOffset == EnclosingMethodAttributeOffset.enclosing_method_attribute_size, |
f7c4174b33ba
7109878: The instanceKlass EnclosingMethhod attribute fields can be folded into the _inner_class field.
jiangli
parents:
4772
diff
changeset
|
459 "just checking"); |
0 | 460 } |
461 for (int i = 0; i < length; i += InnerClassAttributeOffset.innerClassNextOffset) { | |
5967
f7c4174b33ba
7109878: The instanceKlass EnclosingMethhod attribute fields can be folded into the _inner_class field.
jiangli
parents:
4772
diff
changeset
|
462 if (i == length - EnclosingMethodAttributeOffset.enclosing_method_attribute_size) { |
f7c4174b33ba
7109878: The instanceKlass EnclosingMethhod attribute fields can be folded into the _inner_class field.
jiangli
parents:
4772
diff
changeset
|
463 break; |
f7c4174b33ba
7109878: The instanceKlass EnclosingMethhod attribute fields can be folded into the _inner_class field.
jiangli
parents:
4772
diff
changeset
|
464 } |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
465 int ioff = innerClassList.at(i + |
0 | 466 InnerClassAttributeOffset.innerClassInnerClassInfoOffset); |
467 // 'ioff' can be zero. | |
468 // refer to JVM spec. section 4.7.5. | |
469 if (ioff != 0) { | |
2177
3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
1552
diff
changeset
|
470 ConstantPool.CPSlot iclassInfo = getConstants().getSlotAt(ioff); |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
471 Symbol innerName = getConstants().getKlassNameAt(ioff); |
0 | 472 Symbol myname = getName(); |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
473 int ooff = innerClassList.at(i + |
0 | 474 InnerClassAttributeOffset.innerClassOuterClassInfoOffset); |
475 // for anonymous classes inner_name_index of InnerClasses | |
476 // attribute is zero. | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
477 int innerNameIndex = innerClassList.at(i + |
0 | 478 InnerClassAttributeOffset.innerClassInnerNameOffset); |
479 // if this is not a member (anonymous, local etc.), 'ooff' will be zero | |
480 // refer to JVM spec. section 4.7.5. | |
481 if (ooff == 0) { | |
482 if (includeLocals) { | |
483 // does it looks like my local class? | |
484 if (innerName.equals(sym) && | |
485 innerName.asString().startsWith(myname.asString())) { | |
486 // exclude anonymous classes. | |
487 return (innerNameIndex != 0); | |
488 } | |
489 } | |
490 } else { | |
2177
3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
1552
diff
changeset
|
491 ConstantPool.CPSlot oclassInfo = getConstants().getSlotAt(ooff); |
0 | 492 Symbol outerName = null; |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
493 if (oclassInfo.isResolved()) { |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
494 outerName = oclassInfo.getKlass().getName(); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
495 } else if (oclassInfo.isUnresolved()) { |
2177
3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
1552
diff
changeset
|
496 outerName = oclassInfo.getSymbol(); |
0 | 497 } else { |
498 throw new RuntimeException("should not reach here"); | |
499 } | |
500 | |
501 // include only if current class is outer class. | |
502 if (outerName.equals(myname) && innerName.equals(sym)) { | |
503 return true; | |
504 } | |
505 } | |
506 } | |
507 } // for inner classes | |
508 return false; | |
509 } else { | |
510 return false; | |
511 } | |
512 } | |
513 | |
514 public boolean implementsInterface(Klass k) { | |
515 if (Assert.ASSERTS_ENABLED) { | |
516 Assert.that(k.isInterface(), "should not reach here"); | |
517 } | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
518 KlassArray interfaces = getTransitiveInterfaces(); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
519 final int len = interfaces.length(); |
0 | 520 for (int i = 0; i < len; i++) { |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
521 if (interfaces.getAt(i).equals(k)) return true; |
0 | 522 } |
523 return false; | |
524 } | |
525 | |
526 boolean computeSubtypeOf(Klass k) { | |
527 if (k.isInterface()) { | |
528 return implementsInterface(k); | |
529 } else { | |
530 return super.computeSubtypeOf(k); | |
531 } | |
532 } | |
533 | |
534 public void printValueOn(PrintStream tty) { | |
535 tty.print("InstanceKlass for " + getName().asString()); | |
536 } | |
537 | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
538 public void iterateFields(MetadataVisitor visitor) { |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
539 super.iterateFields(visitor); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
540 visitor.doMetadata(arrayKlasses, true); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
541 // visitor.doOop(methods, true); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
542 // visitor.doOop(localInterfaces, true); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
543 // visitor.doOop(transitiveInterfaces, true); |
0 | 544 visitor.doOop(protectionDomain, true); |
545 visitor.doOop(signers, true); | |
546 visitor.doCInt(nonstaticFieldSize, true); | |
547 visitor.doCInt(staticFieldSize, true); | |
2376
c7f3d0b4570f
7017732: move static fields into Class to prepare for perm gen removal
never
parents:
2177
diff
changeset
|
548 visitor.doCInt(staticOopFieldCount, true); |
0 | 549 visitor.doCInt(nonstaticOopMapSize, true); |
4772
8f8b94305aff
7129240: backout fix for 7102776 until 7128770 is resolved
dcubed
parents:
4737
diff
changeset
|
550 visitor.doCInt(isMarkedDependent, true); |
0 | 551 visitor.doCInt(initState, true); |
552 visitor.doCInt(vtableLen, true); | |
553 visitor.doCInt(itableLen, true); | |
554 } | |
555 | |
2411
63997f575155
7031614: jmap -permstat fails with java.lang.InternalError in sun.jvm.hotspot.oops.OopField.getValue
never
parents:
2376
diff
changeset
|
556 /* |
63997f575155
7031614: jmap -permstat fails with java.lang.InternalError in sun.jvm.hotspot.oops.OopField.getValue
never
parents:
2376
diff
changeset
|
557 * Visit the static fields of this InstanceKlass with the obj of |
63997f575155
7031614: jmap -permstat fails with java.lang.InternalError in sun.jvm.hotspot.oops.OopField.getValue
never
parents:
2376
diff
changeset
|
558 * the visitor set to the oop holding the fields, which is |
63997f575155
7031614: jmap -permstat fails with java.lang.InternalError in sun.jvm.hotspot.oops.OopField.getValue
never
parents:
2376
diff
changeset
|
559 * currently the java mirror. |
63997f575155
7031614: jmap -permstat fails with java.lang.InternalError in sun.jvm.hotspot.oops.OopField.getValue
never
parents:
2376
diff
changeset
|
560 */ |
63997f575155
7031614: jmap -permstat fails with java.lang.InternalError in sun.jvm.hotspot.oops.OopField.getValue
never
parents:
2376
diff
changeset
|
561 public void iterateStaticFields(OopVisitor visitor) { |
63997f575155
7031614: jmap -permstat fails with java.lang.InternalError in sun.jvm.hotspot.oops.OopField.getValue
never
parents:
2376
diff
changeset
|
562 visitor.setObj(getJavaMirror()); |
63997f575155
7031614: jmap -permstat fails with java.lang.InternalError in sun.jvm.hotspot.oops.OopField.getValue
never
parents:
2376
diff
changeset
|
563 visitor.prologue(); |
63997f575155
7031614: jmap -permstat fails with java.lang.InternalError in sun.jvm.hotspot.oops.OopField.getValue
never
parents:
2376
diff
changeset
|
564 iterateStaticFieldsInternal(visitor); |
63997f575155
7031614: jmap -permstat fails with java.lang.InternalError in sun.jvm.hotspot.oops.OopField.getValue
never
parents:
2376
diff
changeset
|
565 visitor.epilogue(); |
63997f575155
7031614: jmap -permstat fails with java.lang.InternalError in sun.jvm.hotspot.oops.OopField.getValue
never
parents:
2376
diff
changeset
|
566 |
63997f575155
7031614: jmap -permstat fails with java.lang.InternalError in sun.jvm.hotspot.oops.OopField.getValue
never
parents:
2376
diff
changeset
|
567 } |
63997f575155
7031614: jmap -permstat fails with java.lang.InternalError in sun.jvm.hotspot.oops.OopField.getValue
never
parents:
2376
diff
changeset
|
568 |
63997f575155
7031614: jmap -permstat fails with java.lang.InternalError in sun.jvm.hotspot.oops.OopField.getValue
never
parents:
2376
diff
changeset
|
569 void iterateStaticFieldsInternal(OopVisitor visitor) { |
3938 | 570 int length = getJavaFieldsCount(); |
3944 | 571 for (int index = 0; index < length; index++) { |
572 short accessFlags = getFieldAccessFlags(index); | |
573 FieldType type = new FieldType(getFieldSignature(index)); | |
0 | 574 AccessFlags access = new AccessFlags(accessFlags); |
575 if (access.isStatic()) { | |
576 visitField(visitor, type, index); | |
577 } | |
578 } | |
579 } | |
580 | |
581 public Klass getJavaSuper() { | |
582 return getSuper(); | |
583 } | |
584 | |
3939 | 585 public static class StaticField { |
586 public AccessFlags flags; | |
587 public Field field; | |
588 | |
589 StaticField(Field field, AccessFlags flags) { | |
590 this.field = field; | |
591 this.flags = flags; | |
592 } | |
593 } | |
594 | |
6972
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
595 public Field[] getStaticFields() { |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
596 U2Array fields = getFields(); |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
597 int length = getJavaFieldsCount(); |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
598 ArrayList result = new ArrayList(); |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
599 for (int index = 0; index < length; index++) { |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
600 Field f = newField(index); |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
601 if (f.isStatic()) { |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
602 result.add(f); |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
603 } |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
604 } |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
605 return (Field[])result.toArray(new Field[result.size()]); |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
606 } |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
607 |
2411
63997f575155
7031614: jmap -permstat fails with java.lang.InternalError in sun.jvm.hotspot.oops.OopField.getValue
never
parents:
2376
diff
changeset
|
608 public void iterateNonStaticFields(OopVisitor visitor, Oop obj) { |
0 | 609 if (getSuper() != null) { |
2411
63997f575155
7031614: jmap -permstat fails with java.lang.InternalError in sun.jvm.hotspot.oops.OopField.getValue
never
parents:
2376
diff
changeset
|
610 ((InstanceKlass) getSuper()).iterateNonStaticFields(visitor, obj); |
0 | 611 } |
3938 | 612 int length = getJavaFieldsCount(); |
3944 | 613 for (int index = 0; index < length; index++) { |
614 short accessFlags = getFieldAccessFlags(index); | |
615 FieldType type = new FieldType(getFieldSignature(index)); | |
0 | 616 AccessFlags access = new AccessFlags(accessFlags); |
617 if (!access.isStatic()) { | |
618 visitField(visitor, type, index); | |
619 } | |
620 } | |
621 } | |
622 | |
623 /** Field access by name. */ | |
624 public Field findLocalField(Symbol name, Symbol sig) { | |
3962
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3944
diff
changeset
|
625 int length = getJavaFieldsCount(); |
3944 | 626 for (int i = 0; i < length; i++) { |
627 Symbol f_name = getFieldName(i); | |
628 Symbol f_sig = getFieldSignature(i); | |
0 | 629 if (name.equals(f_name) && sig.equals(f_sig)) { |
630 return newField(i); | |
631 } | |
632 } | |
633 | |
634 return null; | |
635 } | |
636 | |
637 /** Find field in direct superinterfaces. */ | |
638 public Field findInterfaceField(Symbol name, Symbol sig) { | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
639 KlassArray interfaces = getLocalInterfaces(); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
640 int n = interfaces.length(); |
0 | 641 for (int i = 0; i < n; i++) { |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
642 InstanceKlass intf1 = (InstanceKlass) interfaces.getAt(i); |
0 | 643 if (Assert.ASSERTS_ENABLED) { |
644 Assert.that(intf1.isInterface(), "just checking type"); | |
645 } | |
646 // search for field in current interface | |
647 Field f = intf1.findLocalField(name, sig); | |
648 if (f != null) { | |
649 if (Assert.ASSERTS_ENABLED) { | |
650 Assert.that(f.getAccessFlagsObj().isStatic(), "interface field must be static"); | |
651 } | |
652 return f; | |
653 } | |
654 // search for field in direct superinterfaces | |
655 f = intf1.findInterfaceField(name, sig); | |
656 if (f != null) return f; | |
657 } | |
658 // otherwise field lookup fails | |
659 return null; | |
660 } | |
661 | |
662 /** Find field according to JVM spec 5.4.3.2, returns the klass in | |
663 which the field is defined. */ | |
664 public Field findField(Symbol name, Symbol sig) { | |
665 // search order according to newest JVM spec (5.4.3.2, p.167). | |
666 // 1) search for field in current klass | |
667 Field f = findLocalField(name, sig); | |
668 if (f != null) return f; | |
669 | |
670 // 2) search for field recursively in direct superinterfaces | |
671 f = findInterfaceField(name, sig); | |
672 if (f != null) return f; | |
673 | |
674 // 3) apply field lookup recursively if superclass exists | |
675 InstanceKlass supr = (InstanceKlass) getSuper(); | |
676 if (supr != null) return supr.findField(name, sig); | |
677 | |
678 // 4) otherwise field lookup fails | |
679 return null; | |
680 } | |
681 | |
682 /** Find field according to JVM spec 5.4.3.2, returns the klass in | |
683 which the field is defined (convenience routine) */ | |
684 public Field findField(String name, String sig) { | |
685 SymbolTable symbols = VM.getVM().getSymbolTable(); | |
686 Symbol nameSym = symbols.probe(name); | |
687 Symbol sigSym = symbols.probe(sig); | |
688 if (nameSym == null || sigSym == null) { | |
689 return null; | |
690 } | |
691 return findField(nameSym, sigSym); | |
692 } | |
693 | |
694 /** Find field according to JVM spec 5.4.3.2, returns the klass in | |
695 which the field is defined (retained only for backward | |
696 compatibility with jdbx) */ | |
697 public Field findFieldDbg(String name, String sig) { | |
698 return findField(name, sig); | |
699 } | |
700 | |
701 /** Get field by its index in the fields array. Only designed for | |
702 use in a debugging system. */ | |
3944 | 703 public Field getFieldByIndex(int fieldIndex) { |
704 return newField(fieldIndex); | |
0 | 705 } |
706 | |
707 | |
708 /** Return a List of SA Fields for the fields declared in this class. | |
709 Inherited fields are not included. | |
710 Return an empty list if there are no fields declared in this class. | |
711 Only designed for use in a debugging system. */ | |
712 public List getImmediateFields() { | |
713 // A list of Fields for each field declared in this class/interface, | |
714 // not including inherited fields. | |
3938 | 715 int length = getJavaFieldsCount(); |
716 List immediateFields = new ArrayList(length); | |
3944 | 717 for (int index = 0; index < length; index++) { |
0 | 718 immediateFields.add(getFieldByIndex(index)); |
719 } | |
720 | |
721 return immediateFields; | |
722 } | |
723 | |
724 /** Return a List of SA Fields for all the java fields in this class, | |
725 including all inherited fields. This includes hidden | |
726 fields. Thus the returned list can contain fields with | |
727 the same name. | |
728 Return an empty list if there are no fields. | |
729 Only designed for use in a debugging system. */ | |
730 public List getAllFields() { | |
731 // Contains a Field for each field in this class, including immediate | |
732 // fields and inherited fields. | |
733 List allFields = getImmediateFields(); | |
734 | |
735 // transitiveInterfaces contains all interfaces implemented | |
736 // by this class and its superclass chain with no duplicates. | |
737 | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
738 KlassArray interfaces = getTransitiveInterfaces(); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
739 int n = interfaces.length(); |
0 | 740 for (int i = 0; i < n; i++) { |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
741 InstanceKlass intf1 = (InstanceKlass) interfaces.getAt(i); |
0 | 742 if (Assert.ASSERTS_ENABLED) { |
743 Assert.that(intf1.isInterface(), "just checking type"); | |
744 } | |
745 allFields.addAll(intf1.getImmediateFields()); | |
746 } | |
747 | |
748 // Get all fields in the superclass, recursively. But, don't | |
749 // include fields in interfaces implemented by superclasses; | |
750 // we already have all those. | |
751 if (!isInterface()) { | |
752 InstanceKlass supr; | |
753 if ( (supr = (InstanceKlass) getSuper()) != null) { | |
754 allFields.addAll(supr.getImmediateFields()); | |
755 } | |
756 } | |
757 | |
758 return allFields; | |
759 } | |
760 | |
761 | |
762 /** Return a List of SA Methods declared directly in this class/interface. | |
763 Return an empty list if there are none, or if this isn't a class/ | |
764 interface. | |
765 */ | |
766 public List getImmediateMethods() { | |
767 // Contains a Method for each method declared in this class/interface | |
768 // not including inherited methods. | |
769 | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
770 MethodArray methods = getMethods(); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
771 int length = methods.length(); |
0 | 772 Object[] tmp = new Object[length]; |
773 | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
774 IntArray methodOrdering = getMethodOrdering(); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
775 if (methodOrdering.length() != length) { |
0 | 776 // no ordering info present |
777 for (int index = 0; index < length; index++) { | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
778 tmp[index] = methods.at(index); |
0 | 779 } |
780 } else { | |
781 for (int index = 0; index < length; index++) { | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
782 int originalIndex = methodOrdering.at(index); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
783 tmp[originalIndex] = methods.at(index); |
0 | 784 } |
785 } | |
786 | |
787 return Arrays.asList(tmp); | |
788 } | |
789 | |
790 /** Return a List containing an SA InstanceKlass for each | |
791 interface named in this class's 'implements' clause. | |
792 */ | |
793 public List getDirectImplementedInterfaces() { | |
794 // Contains an InstanceKlass for each interface in this classes | |
795 // 'implements' clause. | |
796 | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
797 KlassArray interfaces = getLocalInterfaces(); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
798 int length = interfaces.length(); |
0 | 799 List directImplementedInterfaces = new ArrayList(length); |
800 | |
801 for (int index = 0; index < length; index ++) { | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
802 directImplementedInterfaces.add(interfaces.getAt(index)); |
0 | 803 } |
804 | |
805 return directImplementedInterfaces; | |
806 } | |
807 | |
808 public Klass arrayKlassImpl(boolean orNull, int n) { | |
809 // FIXME: in reflective system this would need to change to | |
810 // actually allocate | |
811 if (getArrayKlasses() == null) { return null; } | |
812 ObjArrayKlass oak = (ObjArrayKlass) getArrayKlasses(); | |
813 if (orNull) { | |
814 return oak.arrayKlassOrNull(n); | |
815 } | |
816 return oak.arrayKlass(n); | |
817 } | |
818 | |
819 public Klass arrayKlassImpl(boolean orNull) { | |
820 return arrayKlassImpl(orNull, 1); | |
821 } | |
822 | |
823 public String signature() { | |
824 return "L" + super.signature() + ";"; | |
825 } | |
826 | |
827 /** Convenience routine taking Strings; lookup is done in | |
828 SymbolTable. */ | |
829 public Method findMethod(String name, String sig) { | |
830 SymbolTable syms = VM.getVM().getSymbolTable(); | |
831 Symbol nameSym = syms.probe(name); | |
832 Symbol sigSym = syms.probe(sig); | |
833 if (nameSym == null || sigSym == null) { | |
834 return null; | |
835 } | |
836 return findMethod(nameSym, sigSym); | |
837 } | |
838 | |
839 /** Find method in vtable. */ | |
840 public Method findMethod(Symbol name, Symbol sig) { | |
841 return findMethod(getMethods(), name, sig); | |
842 } | |
843 | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
844 /** Breakpoint support (see methods on Method* for details) */ |
0 | 845 public BreakpointInfo getBreakpoints() { |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
846 Address addr = getAddress().getAddressAt(breakpoints.getOffset()); |
0 | 847 return (BreakpointInfo) VMObjectFactory.newObject(BreakpointInfo.class, addr); |
848 } | |
849 | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
850 public IntArray getMethodOrdering() { |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
851 Address addr = getAddress().getAddressAt(methodOrdering.getOffset()); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
852 return (IntArray) VMObjectFactory.newObject(IntArray.class, addr); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
853 } |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
854 |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
855 public U2Array getFields() { |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
856 Address addr = getAddress().getAddressAt(fields.getOffset()); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
857 return (U2Array) VMObjectFactory.newObject(U2Array.class, addr); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
858 } |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
859 |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
860 public U2Array getInnerClasses() { |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
861 Address addr = getAddress().getAddressAt(innerClasses.getOffset()); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
862 return (U2Array) VMObjectFactory.newObject(U2Array.class, addr); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
863 } |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
864 |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
865 |
0 | 866 //---------------------------------------------------------------------- |
867 // Internals only below this point | |
868 // | |
869 | |
870 private void visitField(OopVisitor visitor, FieldType type, int index) { | |
871 Field f = newField(index); | |
872 if (type.isOop()) { | |
873 visitor.doOop((OopField) f, false); | |
874 return; | |
875 } | |
876 if (type.isByte()) { | |
877 visitor.doByte((ByteField) f, false); | |
878 return; | |
879 } | |
880 if (type.isChar()) { | |
881 visitor.doChar((CharField) f, false); | |
882 return; | |
883 } | |
884 if (type.isDouble()) { | |
885 visitor.doDouble((DoubleField) f, false); | |
886 return; | |
887 } | |
888 if (type.isFloat()) { | |
889 visitor.doFloat((FloatField) f, false); | |
890 return; | |
891 } | |
892 if (type.isInt()) { | |
893 visitor.doInt((IntField) f, false); | |
894 return; | |
895 } | |
896 if (type.isLong()) { | |
897 visitor.doLong((LongField) f, false); | |
898 return; | |
899 } | |
900 if (type.isShort()) { | |
901 visitor.doShort((ShortField) f, false); | |
902 return; | |
903 } | |
904 if (type.isBoolean()) { | |
905 visitor.doBoolean((BooleanField) f, false); | |
906 return; | |
907 } | |
908 } | |
909 | |
910 // Creates new field from index in fields TypeArray | |
911 private Field newField(int index) { | |
3944 | 912 FieldType type = new FieldType(getFieldSignature(index)); |
0 | 913 if (type.isOop()) { |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
914 if (VM.getVM().isCompressedOopsEnabled()) { |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
915 return new NarrowOopField(this, index); |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
916 } else { |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
917 return new OopField(this, index); |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
918 } |
0 | 919 } |
920 if (type.isByte()) { | |
921 return new ByteField(this, index); | |
922 } | |
923 if (type.isChar()) { | |
924 return new CharField(this, index); | |
925 } | |
926 if (type.isDouble()) { | |
927 return new DoubleField(this, index); | |
928 } | |
929 if (type.isFloat()) { | |
930 return new FloatField(this, index); | |
931 } | |
932 if (type.isInt()) { | |
933 return new IntField(this, index); | |
934 } | |
935 if (type.isLong()) { | |
936 return new LongField(this, index); | |
937 } | |
938 if (type.isShort()) { | |
939 return new ShortField(this, index); | |
940 } | |
941 if (type.isBoolean()) { | |
942 return new BooleanField(this, index); | |
943 } | |
944 throw new RuntimeException("Illegal field type at index " + index); | |
945 } | |
946 | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
947 private static Method findMethod(MethodArray methods, Symbol name, Symbol signature) { |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
948 int len = methods.length(); |
0 | 949 // methods are sorted, so do binary search |
950 int l = 0; | |
951 int h = len - 1; | |
952 while (l <= h) { | |
953 int mid = (l + h) >> 1; | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
954 Method m = methods.at(mid); |
0 | 955 int res = m.getName().fastCompare(name); |
956 if (res == 0) { | |
957 // found matching name; do linear search to find matching signature | |
958 // first, quick check for common case | |
959 if (m.getSignature().equals(signature)) return m; | |
960 // search downwards through overloaded methods | |
961 int i; | |
962 for (i = mid - 1; i >= l; i--) { | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
963 Method m1 = methods.at(i); |
0 | 964 if (!m1.getName().equals(name)) break; |
965 if (m1.getSignature().equals(signature)) return m1; | |
966 } | |
967 // search upwards | |
968 for (i = mid + 1; i <= h; i++) { | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
969 Method m1 = methods.at(i); |
0 | 970 if (!m1.getName().equals(name)) break; |
971 if (m1.getSignature().equals(signature)) return m1; | |
972 } | |
973 // not found | |
974 if (Assert.ASSERTS_ENABLED) { | |
975 int index = linearSearch(methods, name, signature); | |
976 if (index != -1) { | |
977 throw new DebuggerException("binary search bug: should have found entry " + index); | |
978 } | |
979 } | |
980 return null; | |
981 } else if (res < 0) { | |
982 l = mid + 1; | |
983 } else { | |
984 h = mid - 1; | |
985 } | |
986 } | |
987 if (Assert.ASSERTS_ENABLED) { | |
988 int index = linearSearch(methods, name, signature); | |
989 if (index != -1) { | |
990 throw new DebuggerException("binary search bug: should have found entry " + index); | |
991 } | |
992 } | |
993 return null; | |
994 } | |
995 | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
996 private static int linearSearch(MethodArray methods, Symbol name, Symbol signature) { |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
997 int len = (int) methods.length(); |
0 | 998 for (int index = 0; index < len; index++) { |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6203
diff
changeset
|
999 Method m = methods.at(index); |
0 | 1000 if (m.getSignature().equals(signature) && m.getName().equals(name)) { |
1001 return index; | |
1002 } | |
1003 } | |
1004 return -1; | |
1005 } | |
6972
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1006 |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1007 public void dumpReplayData(PrintStream out) { |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1008 ConstantPool cp = getConstants(); |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1009 |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1010 // Try to record related loaded classes |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1011 Klass sub = getSubklassKlass(); |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1012 while (sub != null) { |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1013 if (sub instanceof InstanceKlass) { |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1014 out.println("instanceKlass " + sub.getName().asString()); |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1015 } |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1016 sub = sub.getNextSiblingKlass(); |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1017 } |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1018 |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1019 final int length = (int) cp.getLength(); |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1020 out.print("ciInstanceKlass " + getName().asString() + " " + (isLinked() ? 1 : 0) + " " + (isInitialized() ? 1 : 0) + " " + length); |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1021 for (int index = 1; index < length; index++) { |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1022 out.print(" " + cp.getTags().at(index)); |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1023 } |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1024 out.println(); |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1025 if (isInitialized()) { |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1026 Field[] staticFields = getStaticFields(); |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1027 for (int i = 0; i < staticFields.length; i++) { |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1028 Field f = staticFields[i]; |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1029 Oop mirror = getJavaMirror(); |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1030 if (f.isFinal() && !f.hasInitialValue()) { |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1031 out.print("staticfield " + getName().asString() + " " + |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1032 OopUtilities.escapeString(f.getID().getName()) + " " + |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1033 f.getFieldType().getSignature().asString() + " "); |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1034 if (f instanceof ByteField) { |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1035 ByteField bf = (ByteField)f; |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1036 out.println(bf.getValue(mirror)); |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1037 } else if (f instanceof BooleanField) { |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1038 BooleanField bf = (BooleanField)f; |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1039 out.println(bf.getValue(mirror) ? 1 : 0); |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1040 } else if (f instanceof ShortField) { |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1041 ShortField bf = (ShortField)f; |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1042 out.println(bf.getValue(mirror)); |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1043 } else if (f instanceof CharField) { |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1044 CharField bf = (CharField)f; |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1045 out.println(bf.getValue(mirror) & 0xffff); |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1046 } else if (f instanceof IntField) { |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1047 IntField bf = (IntField)f; |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1048 out.println(bf.getValue(mirror)); |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1049 } else if (f instanceof LongField) { |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1050 LongField bf = (LongField)f; |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1051 out.println(bf.getValue(mirror)); |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1052 } else if (f instanceof FloatField) { |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1053 FloatField bf = (FloatField)f; |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1054 out.println(Float.floatToRawIntBits(bf.getValue(mirror))); |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1055 } else if (f instanceof DoubleField) { |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1056 DoubleField bf = (DoubleField)f; |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1057 out.println(Double.doubleToRawLongBits(bf.getValue(mirror))); |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1058 } else if (f instanceof OopField) { |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1059 OopField bf = (OopField)f; |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1060 |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1061 Oop value = bf.getValue(mirror); |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1062 if (value == null) { |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1063 out.println("null"); |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1064 } else if (value.isInstance()) { |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1065 Instance inst = (Instance)value; |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1066 if (inst.isA(SystemDictionary.getStringKlass())) { |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1067 out.println("\"" + OopUtilities.stringOopToEscapedString(inst) + "\""); |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1068 } else { |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1069 out.println(inst.getKlass().getName().asString()); |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1070 } |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1071 } else if (value.isObjArray()) { |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1072 ObjArray oa = (ObjArray)value; |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1073 Klass ek = (ObjArrayKlass)oa.getKlass(); |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1074 out.println(oa.getLength() + " " + ek.getName().asString()); |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1075 } else if (value.isTypeArray()) { |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1076 TypeArray ta = (TypeArray)value; |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1077 out.println(ta.getLength()); |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1078 } else { |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1079 out.println(value); |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1080 } |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1081 } |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1082 } |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1083 } |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1084 } |
bd7a7ce2e264
6830717: replay of compilations would help with debugging
minqi
parents:
6725
diff
changeset
|
1085 } |
0 | 1086 } |