src/share/vm/ci/ciClassList.hpp

Sat, 01 Sep 2012 13:25:18 -0400

author
coleenp
date
Sat, 01 Sep 2012 13:25:18 -0400
changeset 4037
da91efe96a93
parent 3969
1d7922586cf6
child 4133
f6b0eb4e44cf
permissions
-rw-r--r--

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>

duke@435 1 /*
coleenp@4037 2 * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
duke@435 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@435 4 *
duke@435 5 * This code is free software; you can redistribute it and/or modify it
duke@435 6 * under the terms of the GNU General Public License version 2 only, as
duke@435 7 * published by the Free Software Foundation.
duke@435 8 *
duke@435 9 * This code is distributed in the hope that it will be useful, but WITHOUT
duke@435 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@435 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@435 12 * version 2 for more details (a copy is included in the LICENSE file that
duke@435 13 * accompanied this code).
duke@435 14 *
duke@435 15 * You should have received a copy of the GNU General Public License version
duke@435 16 * 2 along with this work; if not, write to the Free Software Foundation,
duke@435 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@435 18 *
trims@1907 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
trims@1907 20 * or visit www.oracle.com if you need additional information or have any
trims@1907 21 * questions.
duke@435 22 *
duke@435 23 */
duke@435 24
stefank@2314 25 #ifndef SHARE_VM_CI_CICLASSLIST_HPP
stefank@2314 26 #define SHARE_VM_CI_CICLASSLIST_HPP
stefank@2314 27
duke@435 28 class ciEnv;
duke@435 29 class ciObjectFactory;
duke@435 30 class ciConstantPoolCache;
duke@435 31
duke@435 32 class ciField;
duke@435 33 class ciConstant;
duke@435 34 class ciFlags;
duke@435 35 class ciExceptionHandler;
duke@435 36 class ciCallProfile;
duke@435 37 class ciSignature;
duke@435 38
duke@435 39 class ciBytecodeStream;
duke@435 40 class ciSignatureStream;
duke@435 41 class ciExceptionHandlerStream;
duke@435 42
duke@435 43 class ciTypeFlow;
duke@435 44
coleenp@4037 45 class ciBaseObject;
duke@435 46 class ciObject;
duke@435 47 class ciNullObject;
duke@435 48 class ciInstance;
twisti@1573 49 class ciCallSite;
twisti@3969 50 class ciMemberName;
twisti@1573 51 class ciMethodHandle;
coleenp@4037 52 class ciArray;
coleenp@4037 53 class ciObjArray;
coleenp@4037 54 class ciTypeArray;
coleenp@4037 55 class ciSymbol;
coleenp@4037 56 class ciMetadata;
duke@435 57 class ciMethod;
duke@435 58 class ciMethodData;
duke@435 59 class ciReceiverTypeData; // part of ciMethodData
duke@435 60 class ciType;
duke@435 61 class ciReturnAddress;
duke@435 62 class ciKlass;
duke@435 63 class ciInstanceKlass;
duke@435 64 class ciArrayKlass;
duke@435 65 class ciObjArrayKlass;
duke@435 66 class ciTypeArrayKlass;
duke@435 67
duke@435 68 // Simulate Java Language style package-private access with
duke@435 69 // friend declarations.
duke@435 70 // This is a great idea but gcc and other C++ compilers give an
duke@435 71 // error for being friends with yourself, so this macro does not
duke@435 72 // compile on some platforms.
duke@435 73
duke@435 74 // Everyone gives access to ciObjectFactory
duke@435 75 #define CI_PACKAGE_ACCESS \
never@3138 76 friend class ciObjectFactory; \
never@3138 77 friend class VMStructs;
duke@435 78
duke@435 79 // These are the packages that have access to ciEnv
duke@435 80 // Any more access must be given explicitly.
duke@435 81 #define CI_PACKAGE_ACCESS_TO \
duke@435 82 friend class ciObjectFactory; \
never@3138 83 friend class VMStructs; \
twisti@1573 84 friend class ciCallSite; \
duke@435 85 friend class ciConstantPoolCache; \
duke@435 86 friend class ciField; \
duke@435 87 friend class ciConstant; \
duke@435 88 friend class ciFlags; \
duke@435 89 friend class ciExceptionHandler; \
duke@435 90 friend class ciCallProfile; \
duke@435 91 friend class ciSignature; \
duke@435 92 friend class ciBytecodeStream; \
duke@435 93 friend class ciSignatureStream; \
duke@435 94 friend class ciExceptionHandlerStream; \
duke@435 95 friend class ciObject; \
duke@435 96 friend class ciNullObject; \
duke@435 97 friend class ciInstance; \
twisti@3969 98 friend class ciMemberName; \
duke@435 99 friend class ciMethod; \
duke@435 100 friend class ciMethodData; \
twisti@1573 101 friend class ciMethodHandle; \
duke@435 102 friend class ciReceiverTypeData; \
duke@435 103 friend class ciSymbol; \
duke@435 104 friend class ciArray; \
duke@435 105 friend class ciObjArray; \
coleenp@4037 106 friend class ciMetadata; \
duke@435 107 friend class ciTypeArray; \
duke@435 108 friend class ciType; \
duke@435 109 friend class ciReturnAddress; \
duke@435 110 friend class ciKlass; \
duke@435 111 friend class ciInstanceKlass; \
duke@435 112 friend class ciArrayKlass; \
duke@435 113 friend class ciObjArrayKlass; \
duke@435 114 friend class ciTypeArrayKlass; \
stefank@2314 115
stefank@2314 116 #endif // SHARE_VM_CI_CICLASSLIST_HPP

mercurial