comparison src/os/bsd/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 436b4a3231bf
children 8e47bac5643a
comparison
equal deleted inserted replaced
6724:36d1d483d5d6 6725:da91efe96a93
1 /* 1 /*
2 * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 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 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
43 #include "code/pcDesc.hpp" 43 #include "code/pcDesc.hpp"
44 #include "gc_interface/collectedHeap.hpp" 44 #include "gc_interface/collectedHeap.hpp"
45 #include "memory/heap.hpp" 45 #include "memory/heap.hpp"
46 #include "memory/memRegion.hpp" 46 #include "memory/memRegion.hpp"
47 #include "memory/universe.hpp" 47 #include "memory/universe.hpp"
48 #include "oops/constMethodOop.hpp" 48 #include "oops/constMethod.hpp"
49 #include "oops/klass.hpp" 49 #include "oops/klass.hpp"
50 #include "oops/methodOop.hpp" 50 #include "oops/method.hpp"
51 #include "oops/oop.hpp" 51 #include "oops/oop.hpp"
52 #include "oops/symbol.hpp" 52 #include "oops/symbol.hpp"
53 #include "runtime/virtualspace.hpp" 53 #include "runtime/virtualspace.hpp"
54 #include "runtime/vmStructs.hpp" 54 #include "runtime/vmStructs.hpp"
55 #include "utilities/accessFlags.hpp" 55 #include "utilities/accessFlags.hpp"
208 GEN_VALUE(OFFSET_interpreter_frame_method, -3 * pointer_size); 208 GEN_VALUE(OFFSET_interpreter_frame_method, -3 * pointer_size);
209 GEN_VALUE(OFFSET_interpreter_frame_bcx_offset, -7 * pointer_size); 209 GEN_VALUE(OFFSET_interpreter_frame_bcx_offset, -7 * pointer_size);
210 #endif 210 #endif
211 211
212 GEN_OFFS(Klass, _name); 212 GEN_OFFS(Klass, _name);
213 GEN_OFFS(constantPoolOopDesc, _pool_holder); 213 GEN_OFFS(ConstantPool, _pool_holder);
214 printf("\n"); 214 printf("\n");
215 215
216 GEN_VALUE(OFFSET_HeapBlockHeader_used, (int) offset_of(HeapBlock::Header, _used)); 216 GEN_VALUE(OFFSET_HeapBlockHeader_used, (int) offset_of(HeapBlock::Header, _used));
217 GEN_OFFS(oopDesc, _metadata); 217 GEN_OFFS(oopDesc, _metadata);
218 printf("\n"); 218 printf("\n");
219 219
220 GEN_VALUE(AccessFlags_NATIVE, JVM_ACC_NATIVE); 220 GEN_VALUE(AccessFlags_NATIVE, JVM_ACC_NATIVE);
221 GEN_VALUE(constMethodOopDesc_has_linenumber_table, constMethodOopDesc::_has_linenumber_table); 221 GEN_VALUE(ConstMethod_has_linenumber_table, ConstMethod::_has_linenumber_table);
222 GEN_OFFS(AccessFlags, _flags); 222 GEN_OFFS(AccessFlags, _flags);
223 GEN_OFFS(Symbol, _length); 223 GEN_OFFS(Symbol, _length);
224 GEN_OFFS(Symbol, _body); 224 GEN_OFFS(Symbol, _body);
225 printf("\n"); 225 printf("\n");
226 226
227 GEN_OFFS(methodOopDesc, _constMethod); 227 GEN_OFFS(Method, _constMethod);
228 GEN_OFFS(methodOopDesc, _constants); 228 GEN_OFFS(Method, _constants);
229 GEN_OFFS(methodOopDesc, _access_flags); 229 GEN_OFFS(Method, _access_flags);
230 printf("\n"); 230 printf("\n");
231 231
232 GEN_OFFS(constMethodOopDesc, _flags); 232 GEN_OFFS(ConstMethod, _flags);
233 GEN_OFFS(constMethodOopDesc, _code_size); 233 GEN_OFFS(ConstMethod, _code_size);
234 GEN_OFFS(constMethodOopDesc, _name_index); 234 GEN_OFFS(ConstMethod, _name_index);
235 GEN_OFFS(constMethodOopDesc, _signature_index); 235 GEN_OFFS(ConstMethod, _signature_index);
236 printf("\n"); 236 printf("\n");
237 237
238 GEN_OFFS(CodeHeap, _memory); 238 GEN_OFFS(CodeHeap, _memory);
239 GEN_OFFS(CodeHeap, _segmap); 239 GEN_OFFS(CodeHeap, _segmap);
240 GEN_OFFS(CodeHeap, _log2_segment_size); 240 GEN_OFFS(CodeHeap, _log2_segment_size);
271 GEN_OFFS(NarrowOopStruct, _shift); 271 GEN_OFFS(NarrowOopStruct, _shift);
272 printf("\n"); 272 printf("\n");
273 273
274 GEN_VALUE(SIZE_HeapBlockHeader, (int) sizeof(HeapBlock::Header)); 274 GEN_VALUE(SIZE_HeapBlockHeader, (int) sizeof(HeapBlock::Header));
275 GEN_SIZE(oopDesc); 275 GEN_SIZE(oopDesc);
276 GEN_SIZE(constantPoolOopDesc); 276 GEN_SIZE(ConstantPool);
277 printf("\n"); 277 printf("\n");
278 278
279 GEN_SIZE(PcDesc); 279 GEN_SIZE(PcDesc);
280 GEN_SIZE(methodOopDesc); 280 GEN_SIZE(Method);
281 GEN_SIZE(constMethodOopDesc); 281 GEN_SIZE(ConstMethod);
282 GEN_SIZE(nmethod); 282 GEN_SIZE(nmethod);
283 GEN_SIZE(CodeBlob); 283 GEN_SIZE(CodeBlob);
284 GEN_SIZE(BufferBlob); 284 GEN_SIZE(BufferBlob);
285 GEN_SIZE(SingletonBlob); 285 GEN_SIZE(SingletonBlob);
286 GEN_SIZE(RuntimeStub); 286 GEN_SIZE(RuntimeStub);