annotate src/os/solaris/dtrace/generateJvmOffsets.cpp @ 6725:da91efe96a93

6964458: Reimplement class meta-data storage to use native memory Summary: Remove PermGen, allocate meta-data in metaspace linked to class loaders, rewrite GC walking, rewrite and rename metadata to be C++ classes Reviewed-by: jmasa, stefank, never, coleenp, kvn, brutisso, mgerdin, dholmes, jrose, twisti, roland Contributed-by: jmasa <jon.masamitsu@oracle.com>, stefank <stefan.karlsson@oracle.com>, mgerdin <mikael.gerdin@oracle.com>, never <tom.rodriguez@oracle.com>
author coleenp
date Sat, 01 Sep 2012 13:25:18 -0400
parents 2fe087c3e814
children 8e47bac5643a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 /*
6123
2fe087c3e814 7172967: Eliminate constMethod's _method backpointer to methodOop.
jiangli
parents: 2426
diff changeset
2 * Copyright (c) 2003, 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: 844
diff changeset
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 844
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: 844
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
a61af66fc99e Initial load
duke
parents:
diff changeset
25 /*
a61af66fc99e Initial load
duke
parents:
diff changeset
26 * This is to provide sanity check in jhelper.d which compares SCCS
a61af66fc99e Initial load
duke
parents:
diff changeset
27 * versions of generateJvmOffsets.cpp used to create and extract
a61af66fc99e Initial load
duke
parents:
diff changeset
28 * contents of __JvmOffsets[] table.
a61af66fc99e Initial load
duke
parents:
diff changeset
29 * The __JvmOffsets[] table is located in generated JvmOffsets.cpp.
a61af66fc99e Initial load
duke
parents:
diff changeset
30 *
a61af66fc99e Initial load
duke
parents:
diff changeset
31 * GENOFFS_SCCS_VER 34
a61af66fc99e Initial load
duke
parents:
diff changeset
32 */
a61af66fc99e Initial load
duke
parents:
diff changeset
33
a61af66fc99e Initial load
duke
parents:
diff changeset
34 #include "generateJvmOffsets.h"
a61af66fc99e Initial load
duke
parents:
diff changeset
35
a61af66fc99e Initial load
duke
parents:
diff changeset
36 /* A workaround for private and protected fields */
a61af66fc99e Initial load
duke
parents:
diff changeset
37 #define private public
a61af66fc99e Initial load
duke
parents:
diff changeset
38 #define protected public
a61af66fc99e Initial load
duke
parents:
diff changeset
39
a61af66fc99e Initial load
duke
parents:
diff changeset
40 #include <proc_service.h>
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1748
diff changeset
41 #include "code/codeBlob.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1748
diff changeset
42 #include "code/nmethod.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1748
diff changeset
43 #include "code/pcDesc.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1748
diff changeset
44 #include "gc_interface/collectedHeap.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1748
diff changeset
45 #include "memory/heap.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1748
diff changeset
46 #include "memory/memRegion.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1748
diff changeset
47 #include "memory/universe.hpp"
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 6123
diff changeset
48 #include "oops/constMethod.hpp"
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1748
diff changeset
49 #include "oops/klass.hpp"
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 6123
diff changeset
50 #include "oops/method.hpp"
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1748
diff changeset
51 #include "oops/oop.hpp"
2177
3582bf76420e 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 1972
diff changeset
52 #include "oops/symbol.hpp"
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1748
diff changeset
53 #include "runtime/virtualspace.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1748
diff changeset
54 #include "runtime/vmStructs.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1748
diff changeset
55 #include "utilities/accessFlags.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1748
diff changeset
56 #include "utilities/globalDefinitions.hpp"
0
a61af66fc99e Initial load
duke
parents:
diff changeset
57 #ifdef COMPILER1
a61af66fc99e Initial load
duke
parents:
diff changeset
58 #if defined(DEBUG) || defined(FASTDEBUG)
a61af66fc99e Initial load
duke
parents:
diff changeset
59
a61af66fc99e Initial load
duke
parents:
diff changeset
60 /*
a61af66fc99e Initial load
duke
parents:
diff changeset
61 * To avoid the most part of potential link errors
a61af66fc99e Initial load
duke
parents:
diff changeset
62 * we link this program with -z nodefs .
a61af66fc99e Initial load
duke
parents:
diff changeset
63 *
a61af66fc99e Initial load
duke
parents:
diff changeset
64 * But for 'debug1' and 'fastdebug1' we still have to provide
a61af66fc99e Initial load
duke
parents:
diff changeset
65 * a particular workaround for the following symbols bellow.
a61af66fc99e Initial load
duke
parents:
diff changeset
66 * It will be good to find out a generic way in the future.
a61af66fc99e Initial load
duke
parents:
diff changeset
67 */
a61af66fc99e Initial load
duke
parents:
diff changeset
68
a61af66fc99e Initial load
duke
parents:
diff changeset
69 #pragma weak tty
a61af66fc99e Initial load
duke
parents:
diff changeset
70 #pragma weak CMSExpAvgFactor
a61af66fc99e Initial load
duke
parents:
diff changeset
71
a61af66fc99e Initial load
duke
parents:
diff changeset
72 #if defined(i386) || defined(__i386) || defined(__amd64)
a61af66fc99e Initial load
duke
parents:
diff changeset
73 #pragma weak noreg
a61af66fc99e Initial load
duke
parents:
diff changeset
74 #endif /* i386 */
a61af66fc99e Initial load
duke
parents:
diff changeset
75
a61af66fc99e Initial load
duke
parents:
diff changeset
76 LIR_Opr LIR_OprFact::illegalOpr = (LIR_Opr) 0;
a61af66fc99e Initial load
duke
parents:
diff changeset
77
a61af66fc99e Initial load
duke
parents:
diff changeset
78 address StubRoutines::_call_stub_return_address = NULL;
a61af66fc99e Initial load
duke
parents:
diff changeset
79
a61af66fc99e Initial load
duke
parents:
diff changeset
80 StubQueue* AbstractInterpreter::_code = NULL;
a61af66fc99e Initial load
duke
parents:
diff changeset
81
a61af66fc99e Initial load
duke
parents:
diff changeset
82 #endif /* defined(DEBUG) || defined(FASTDEBUG) */
a61af66fc99e Initial load
duke
parents:
diff changeset
83 #endif /* COMPILER1 */
a61af66fc99e Initial load
duke
parents:
diff changeset
84
a61af66fc99e Initial load
duke
parents:
diff changeset
85 #define GEN_OFFS(Type,Name) \
a61af66fc99e Initial load
duke
parents:
diff changeset
86 switch(gen_variant) { \
a61af66fc99e Initial load
duke
parents:
diff changeset
87 case GEN_OFFSET: \
a61af66fc99e Initial load
duke
parents:
diff changeset
88 printf("#define OFFSET_%-33s %d\n", \
a61af66fc99e Initial load
duke
parents:
diff changeset
89 #Type #Name, offset_of(Type, Name)); \
a61af66fc99e Initial load
duke
parents:
diff changeset
90 break; \
a61af66fc99e Initial load
duke
parents:
diff changeset
91 case GEN_INDEX: \
a61af66fc99e Initial load
duke
parents:
diff changeset
92 printf("#define IDX_OFFSET_%-33s %d\n", \
a61af66fc99e Initial load
duke
parents:
diff changeset
93 #Type #Name, index++); \
a61af66fc99e Initial load
duke
parents:
diff changeset
94 break; \
a61af66fc99e Initial load
duke
parents:
diff changeset
95 case GEN_TABLE: \
a61af66fc99e Initial load
duke
parents:
diff changeset
96 printf("\tOFFSET_%s,\n", #Type #Name); \
a61af66fc99e Initial load
duke
parents:
diff changeset
97 break; \
a61af66fc99e Initial load
duke
parents:
diff changeset
98 }
a61af66fc99e Initial load
duke
parents:
diff changeset
99
a61af66fc99e Initial load
duke
parents:
diff changeset
100 #define GEN_SIZE(Type) \
a61af66fc99e Initial load
duke
parents:
diff changeset
101 switch(gen_variant) { \
a61af66fc99e Initial load
duke
parents:
diff changeset
102 case GEN_OFFSET: \
a61af66fc99e Initial load
duke
parents:
diff changeset
103 printf("#define SIZE_%-35s %d\n", \
a61af66fc99e Initial load
duke
parents:
diff changeset
104 #Type, sizeof(Type)); \
a61af66fc99e Initial load
duke
parents:
diff changeset
105 break; \
a61af66fc99e Initial load
duke
parents:
diff changeset
106 case GEN_INDEX: \
a61af66fc99e Initial load
duke
parents:
diff changeset
107 printf("#define IDX_SIZE_%-35s %d\n", \
a61af66fc99e Initial load
duke
parents:
diff changeset
108 #Type, index++); \
a61af66fc99e Initial load
duke
parents:
diff changeset
109 break; \
a61af66fc99e Initial load
duke
parents:
diff changeset
110 case GEN_TABLE: \
a61af66fc99e Initial load
duke
parents:
diff changeset
111 printf("\tSIZE_%s,\n", #Type); \
a61af66fc99e Initial load
duke
parents:
diff changeset
112 break; \
a61af66fc99e Initial load
duke
parents:
diff changeset
113 }
a61af66fc99e Initial load
duke
parents:
diff changeset
114
a61af66fc99e Initial load
duke
parents:
diff changeset
115 #define GEN_VALUE(String,Value) \
a61af66fc99e Initial load
duke
parents:
diff changeset
116 switch(gen_variant) { \
a61af66fc99e Initial load
duke
parents:
diff changeset
117 case GEN_OFFSET: \
a61af66fc99e Initial load
duke
parents:
diff changeset
118 printf("#define %-40s %d\n", #String, Value); \
a61af66fc99e Initial load
duke
parents:
diff changeset
119 break; \
a61af66fc99e Initial load
duke
parents:
diff changeset
120 case GEN_INDEX: \
a61af66fc99e Initial load
duke
parents:
diff changeset
121 printf("#define IDX_%-40s %d\n", #String, index++); \
a61af66fc99e Initial load
duke
parents:
diff changeset
122 break; \
a61af66fc99e Initial load
duke
parents:
diff changeset
123 case GEN_TABLE: \
a61af66fc99e Initial load
duke
parents:
diff changeset
124 printf("\t" #String ",\n"); \
a61af66fc99e Initial load
duke
parents:
diff changeset
125 break; \
a61af66fc99e Initial load
duke
parents:
diff changeset
126 }
a61af66fc99e Initial load
duke
parents:
diff changeset
127
a61af66fc99e Initial load
duke
parents:
diff changeset
128 void gen_prologue(GEN_variant gen_variant) {
a61af66fc99e Initial load
duke
parents:
diff changeset
129 const char *suffix;
a61af66fc99e Initial load
duke
parents:
diff changeset
130
a61af66fc99e Initial load
duke
parents:
diff changeset
131 switch(gen_variant) {
a61af66fc99e Initial load
duke
parents:
diff changeset
132 case GEN_OFFSET: suffix = ".h"; break;
a61af66fc99e Initial load
duke
parents:
diff changeset
133 case GEN_INDEX: suffix = "Index.h"; break;
a61af66fc99e Initial load
duke
parents:
diff changeset
134 case GEN_TABLE: suffix = ".cpp"; break;
a61af66fc99e Initial load
duke
parents:
diff changeset
135 }
a61af66fc99e Initial load
duke
parents:
diff changeset
136
a61af66fc99e Initial load
duke
parents:
diff changeset
137 printf("/*\n");
a61af66fc99e Initial load
duke
parents:
diff changeset
138 printf(" * JvmOffsets%s !!!DO NOT EDIT!!! \n", suffix);
a61af66fc99e Initial load
duke
parents:
diff changeset
139 printf(" * The generateJvmOffsets program generates this file!\n");
a61af66fc99e Initial load
duke
parents:
diff changeset
140 printf(" */\n\n");
a61af66fc99e Initial load
duke
parents:
diff changeset
141 switch(gen_variant) {
a61af66fc99e Initial load
duke
parents:
diff changeset
142
a61af66fc99e Initial load
duke
parents:
diff changeset
143 case GEN_OFFSET:
a61af66fc99e Initial load
duke
parents:
diff changeset
144 case GEN_INDEX:
a61af66fc99e Initial load
duke
parents:
diff changeset
145 break;
a61af66fc99e Initial load
duke
parents:
diff changeset
146
a61af66fc99e Initial load
duke
parents:
diff changeset
147 case GEN_TABLE:
a61af66fc99e Initial load
duke
parents:
diff changeset
148 printf("#include \"JvmOffsets.h\"\n");
a61af66fc99e Initial load
duke
parents:
diff changeset
149 printf("\n");
a61af66fc99e Initial load
duke
parents:
diff changeset
150 printf("int __JvmOffsets[] = {\n");
a61af66fc99e Initial load
duke
parents:
diff changeset
151 break;
a61af66fc99e Initial load
duke
parents:
diff changeset
152 }
a61af66fc99e Initial load
duke
parents:
diff changeset
153 }
a61af66fc99e Initial load
duke
parents:
diff changeset
154
a61af66fc99e Initial load
duke
parents:
diff changeset
155 void gen_epilogue(GEN_variant gen_variant) {
a61af66fc99e Initial load
duke
parents:
diff changeset
156 if (gen_variant != GEN_TABLE) {
a61af66fc99e Initial load
duke
parents:
diff changeset
157 return;
a61af66fc99e Initial load
duke
parents:
diff changeset
158 }
a61af66fc99e Initial load
duke
parents:
diff changeset
159 printf("};\n\n");
a61af66fc99e Initial load
duke
parents:
diff changeset
160 return;
a61af66fc99e Initial load
duke
parents:
diff changeset
161 }
a61af66fc99e Initial load
duke
parents:
diff changeset
162
a61af66fc99e Initial load
duke
parents:
diff changeset
163 int generateJvmOffsets(GEN_variant gen_variant) {
a61af66fc99e Initial load
duke
parents:
diff changeset
164 int index = 0; /* It is used to generate JvmOffsetsIndex.h */
a61af66fc99e Initial load
duke
parents:
diff changeset
165 int pointer_size = sizeof(void *);
a61af66fc99e Initial load
duke
parents:
diff changeset
166 int data_model = (pointer_size == 4) ? PR_MODEL_ILP32 : PR_MODEL_LP64;
a61af66fc99e Initial load
duke
parents:
diff changeset
167
a61af66fc99e Initial load
duke
parents:
diff changeset
168 gen_prologue(gen_variant);
a61af66fc99e Initial load
duke
parents:
diff changeset
169
a61af66fc99e Initial load
duke
parents:
diff changeset
170 GEN_VALUE(DATA_MODEL, data_model);
a61af66fc99e Initial load
duke
parents:
diff changeset
171 GEN_VALUE(POINTER_SIZE, pointer_size);
a61af66fc99e Initial load
duke
parents:
diff changeset
172 #if defined(TIERED)
a61af66fc99e Initial load
duke
parents:
diff changeset
173 GEN_VALUE(COMPILER, 3);
a61af66fc99e Initial load
duke
parents:
diff changeset
174 #elif COMPILER1
a61af66fc99e Initial load
duke
parents:
diff changeset
175 GEN_VALUE(COMPILER, 1);
a61af66fc99e Initial load
duke
parents:
diff changeset
176 #elif COMPILER2
a61af66fc99e Initial load
duke
parents:
diff changeset
177 GEN_VALUE(COMPILER, 2);
a61af66fc99e Initial load
duke
parents:
diff changeset
178 #else
a61af66fc99e Initial load
duke
parents:
diff changeset
179 GEN_VALUE(COMPILER, 0);
a61af66fc99e Initial load
duke
parents:
diff changeset
180 #endif // COMPILER1 && COMPILER2
a61af66fc99e Initial load
duke
parents:
diff changeset
181 printf("\n");
a61af66fc99e Initial load
duke
parents:
diff changeset
182
a61af66fc99e Initial load
duke
parents:
diff changeset
183 GEN_OFFS(CollectedHeap, _reserved);
a61af66fc99e Initial load
duke
parents:
diff changeset
184 GEN_OFFS(MemRegion, _start);
a61af66fc99e Initial load
duke
parents:
diff changeset
185 GEN_OFFS(MemRegion, _word_size);
a61af66fc99e Initial load
duke
parents:
diff changeset
186 GEN_SIZE(HeapWord);
a61af66fc99e Initial load
duke
parents:
diff changeset
187 printf("\n");
a61af66fc99e Initial load
duke
parents:
diff changeset
188
a61af66fc99e Initial load
duke
parents:
diff changeset
189 GEN_OFFS(VMStructEntry, typeName);
a61af66fc99e Initial load
duke
parents:
diff changeset
190 GEN_OFFS(VMStructEntry, fieldName);
a61af66fc99e Initial load
duke
parents:
diff changeset
191 GEN_OFFS(VMStructEntry, address);
a61af66fc99e Initial load
duke
parents:
diff changeset
192 GEN_SIZE(VMStructEntry);
a61af66fc99e Initial load
duke
parents:
diff changeset
193 printf("\n");
a61af66fc99e Initial load
duke
parents:
diff changeset
194
a61af66fc99e Initial load
duke
parents:
diff changeset
195 GEN_VALUE(MAX_METHOD_CODE_SIZE, max_method_code_size);
a61af66fc99e Initial load
duke
parents:
diff changeset
196 #if defined(sparc) || defined(__sparc)
a61af66fc99e Initial load
duke
parents:
diff changeset
197 GEN_VALUE(OFFSET_interpreter_frame_method, 2 * pointer_size); /* L2 in saved window */
a61af66fc99e Initial load
duke
parents:
diff changeset
198 GEN_VALUE(OFFSET_interpreter_frame_sender_sp, 13 * pointer_size); /* I5 in saved window */
a61af66fc99e Initial load
duke
parents:
diff changeset
199 // Fake value for consistency. It is not going to be used.
a61af66fc99e Initial load
duke
parents:
diff changeset
200 GEN_VALUE(OFFSET_interpreter_frame_bcx_offset, 0xFFFF);
a61af66fc99e Initial load
duke
parents:
diff changeset
201 #elif defined(i386) || defined(__i386) || defined(__amd64)
a61af66fc99e Initial load
duke
parents:
diff changeset
202 GEN_VALUE(OFFSET_interpreter_frame_sender_sp, -1 * pointer_size);
a61af66fc99e Initial load
duke
parents:
diff changeset
203 GEN_VALUE(OFFSET_interpreter_frame_method, -3 * pointer_size);
a61af66fc99e Initial load
duke
parents:
diff changeset
204 GEN_VALUE(OFFSET_interpreter_frame_bcx_offset, -7 * pointer_size);
a61af66fc99e Initial load
duke
parents:
diff changeset
205 #endif
a61af66fc99e Initial load
duke
parents:
diff changeset
206
a61af66fc99e Initial load
duke
parents:
diff changeset
207 GEN_OFFS(Klass, _name);
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 6123
diff changeset
208 GEN_OFFS(ConstantPool, _pool_holder);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
209 printf("\n");
a61af66fc99e Initial load
duke
parents:
diff changeset
210
a61af66fc99e Initial load
duke
parents:
diff changeset
211 GEN_VALUE(OFFSET_HeapBlockHeader_used, offset_of(HeapBlock::Header, _used));
113
ba764ed4b6f2 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 0
diff changeset
212 GEN_OFFS(oopDesc, _metadata);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
213 printf("\n");
a61af66fc99e Initial load
duke
parents:
diff changeset
214
a61af66fc99e Initial load
duke
parents:
diff changeset
215 GEN_VALUE(AccessFlags_NATIVE, JVM_ACC_NATIVE);
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 6123
diff changeset
216 GEN_VALUE(ConstMethod_has_linenumber_table, ConstMethod::_has_linenumber_table);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
217 GEN_OFFS(AccessFlags, _flags);
2177
3582bf76420e 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 1972
diff changeset
218 GEN_OFFS(Symbol, _length);
3582bf76420e 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 1972
diff changeset
219 GEN_OFFS(Symbol, _body);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
220 printf("\n");
a61af66fc99e Initial load
duke
parents:
diff changeset
221
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 6123
diff changeset
222 GEN_OFFS(Method, _constMethod);
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 6123
diff changeset
223 GEN_OFFS(Method, _access_flags);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
224 printf("\n");
a61af66fc99e Initial load
duke
parents:
diff changeset
225
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 6123
diff changeset
226 GEN_OFFS(ConstMethod, _constants);
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 6123
diff changeset
227 GEN_OFFS(ConstMethod, _flags);
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 6123
diff changeset
228 GEN_OFFS(ConstMethod, _code_size);
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 6123
diff changeset
229 GEN_OFFS(ConstMethod, _name_index);
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 6123
diff changeset
230 GEN_OFFS(ConstMethod, _signature_index);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
231 printf("\n");
a61af66fc99e Initial load
duke
parents:
diff changeset
232
a61af66fc99e Initial load
duke
parents:
diff changeset
233 GEN_OFFS(CodeHeap, _memory);
a61af66fc99e Initial load
duke
parents:
diff changeset
234 GEN_OFFS(CodeHeap, _segmap);
a61af66fc99e Initial load
duke
parents:
diff changeset
235 GEN_OFFS(CodeHeap, _log2_segment_size);
a61af66fc99e Initial load
duke
parents:
diff changeset
236 printf("\n");
a61af66fc99e Initial load
duke
parents:
diff changeset
237
a61af66fc99e Initial load
duke
parents:
diff changeset
238 GEN_OFFS(VirtualSpace, _low_boundary);
a61af66fc99e Initial load
duke
parents:
diff changeset
239 GEN_OFFS(VirtualSpace, _high_boundary);
a61af66fc99e Initial load
duke
parents:
diff changeset
240 GEN_OFFS(VirtualSpace, _low);
a61af66fc99e Initial load
duke
parents:
diff changeset
241 GEN_OFFS(VirtualSpace, _high);
a61af66fc99e Initial load
duke
parents:
diff changeset
242 printf("\n");
a61af66fc99e Initial load
duke
parents:
diff changeset
243
a61af66fc99e Initial load
duke
parents:
diff changeset
244 GEN_OFFS(CodeBlob, _name);
a61af66fc99e Initial load
duke
parents:
diff changeset
245 GEN_OFFS(CodeBlob, _header_size);
1748
3e8fbc61cee8 6978355: renaming for 6961697
twisti
parents: 1579
diff changeset
246 GEN_OFFS(CodeBlob, _content_offset);
3e8fbc61cee8 6978355: renaming for 6961697
twisti
parents: 1579
diff changeset
247 GEN_OFFS(CodeBlob, _code_offset);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
248 GEN_OFFS(CodeBlob, _data_offset);
a61af66fc99e Initial load
duke
parents:
diff changeset
249 GEN_OFFS(CodeBlob, _frame_size);
a61af66fc99e Initial load
duke
parents:
diff changeset
250 printf("\n");
a61af66fc99e Initial load
duke
parents:
diff changeset
251
a61af66fc99e Initial load
duke
parents:
diff changeset
252 GEN_OFFS(nmethod, _method);
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 6123
diff changeset
253 GEN_OFFS(nmethod, _metadata_offset);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
254 GEN_OFFS(nmethod, _scopes_data_offset);
a61af66fc99e Initial load
duke
parents:
diff changeset
255 GEN_OFFS(nmethod, _scopes_pcs_offset);
a61af66fc99e Initial load
duke
parents:
diff changeset
256 GEN_OFFS(nmethod, _handler_table_offset);
a61af66fc99e Initial load
duke
parents:
diff changeset
257 GEN_OFFS(nmethod, _deoptimize_offset);
a61af66fc99e Initial load
duke
parents:
diff changeset
258 GEN_OFFS(nmethod, _orig_pc_offset);
a61af66fc99e Initial load
duke
parents:
diff changeset
259
a61af66fc99e Initial load
duke
parents:
diff changeset
260 GEN_OFFS(PcDesc, _pc_offset);
a61af66fc99e Initial load
duke
parents:
diff changeset
261 GEN_OFFS(PcDesc, _scope_decode_offset);
a61af66fc99e Initial load
duke
parents:
diff changeset
262
a61af66fc99e Initial load
duke
parents:
diff changeset
263 printf("\n");
a61af66fc99e Initial load
duke
parents:
diff changeset
264
642
660978a2a31a 6791178: Specialize for zero as the compressed oop vm heap base
kvn
parents: 196
diff changeset
265 GEN_OFFS(NarrowOopStruct, _base);
660978a2a31a 6791178: Specialize for zero as the compressed oop vm heap base
kvn
parents: 196
diff changeset
266 GEN_OFFS(NarrowOopStruct, _shift);
660978a2a31a 6791178: Specialize for zero as the compressed oop vm heap base
kvn
parents: 196
diff changeset
267 printf("\n");
660978a2a31a 6791178: Specialize for zero as the compressed oop vm heap base
kvn
parents: 196
diff changeset
268
0
a61af66fc99e Initial load
duke
parents:
diff changeset
269 GEN_VALUE(SIZE_HeapBlockHeader, sizeof(HeapBlock::Header));
a61af66fc99e Initial load
duke
parents:
diff changeset
270 GEN_SIZE(oopDesc);
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 6123
diff changeset
271 GEN_SIZE(ConstantPool);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
272 printf("\n");
a61af66fc99e Initial load
duke
parents:
diff changeset
273
a61af66fc99e Initial load
duke
parents:
diff changeset
274 GEN_SIZE(PcDesc);
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 6123
diff changeset
275 GEN_SIZE(Method);
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 6123
diff changeset
276 GEN_SIZE(ConstMethod);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
277 GEN_SIZE(nmethod);
a61af66fc99e Initial load
duke
parents:
diff changeset
278 GEN_SIZE(CodeBlob);
a61af66fc99e Initial load
duke
parents:
diff changeset
279 GEN_SIZE(BufferBlob);
a61af66fc99e Initial load
duke
parents:
diff changeset
280 GEN_SIZE(SingletonBlob);
a61af66fc99e Initial load
duke
parents:
diff changeset
281 GEN_SIZE(RuntimeStub);
a61af66fc99e Initial load
duke
parents:
diff changeset
282 GEN_SIZE(SafepointBlob);
a61af66fc99e Initial load
duke
parents:
diff changeset
283
a61af66fc99e Initial load
duke
parents:
diff changeset
284 gen_epilogue(gen_variant);
a61af66fc99e Initial load
duke
parents:
diff changeset
285 printf("\n");
a61af66fc99e Initial load
duke
parents:
diff changeset
286
a61af66fc99e Initial load
duke
parents:
diff changeset
287 fflush(stdout);
a61af66fc99e Initial load
duke
parents:
diff changeset
288 return 0;
a61af66fc99e Initial load
duke
parents:
diff changeset
289 }