Mercurial > hg > truffle
annotate src/share/vm/utilities/macros.hpp @ 7788:dbbe8ce3bfa5
commands: accept 'server0' as a vm, accept version number which have '-...' suffix (-internal, -ea...)
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Wed, 13 Feb 2013 18:33:54 +0100 |
parents | 5d0bb7d52783 |
children | 5fc51c1ecdeb |
rev | line source |
---|---|
0 | 1 /* |
6854
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
2 * Copyright (c) 1997, 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:
1490
diff
changeset
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1490
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:
1490
diff
changeset
|
21 * questions. |
0 | 22 * |
23 */ | |
24 | |
1972 | 25 #ifndef SHARE_VM_UTILITIES_MACROS_HPP |
26 #define SHARE_VM_UTILITIES_MACROS_HPP | |
27 | |
0 | 28 // Use this to mark code that needs to be cleaned up (for development only) |
29 #define NEEDS_CLEANUP | |
30 | |
31 // Makes a string of the argument (which is not macro-expanded) | |
32 #define STR(a) #a | |
33 | |
34 // Makes a string of the macro expansion of a | |
35 #define XSTR(a) STR(a) | |
36 | |
6854
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
37 // -DINCLUDE_<something>=0 | 1 can be specified on the command line to include |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
38 // or exclude functionality. |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
39 |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
40 #ifndef INCLUDE_JVMTI |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
41 #define INCLUDE_JVMTI 1 |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
42 #endif // INCLUDE_JVMTI |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
43 |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
44 #if INCLUDE_JVMTI |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
45 #define JVMTI_ONLY(x) x |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
46 #define NOT_JVMTI(x) |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
47 #define NOT_JVMTI_RETURN |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
48 #define NOT_JVMTI_RETURN_(code) /* next token must be ; */ |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
49 #else |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
50 #define JVMTI_ONLY(x) |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
51 #define NOT_JVMTI(x) x |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
52 #define NOT_JVMTI_RETURN { return; } |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
53 #define NOT_JVMTI_RETURN_(code) { return code; } |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
54 #endif // INCLUDE_JVMTI |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
55 |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
56 #ifndef INCLUDE_FPROF |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
57 #define INCLUDE_FPROF 1 |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
58 #endif |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
59 |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
60 #if INCLUDE_FPROF |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
61 #define NOT_FPROF_RETURN /* next token must be ; */ |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
62 #define NOT_FPROF_RETURN_(code) /* next token must be ; */ |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
63 #else |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
64 #define NOT_FPROF_RETURN {} |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
65 #define NOT_FPROF_RETURN_(code) { return code; } |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
66 #endif // INCLUDE_FPROF |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
67 |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
68 #ifndef INCLUDE_VM_STRUCTS |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
69 #define INCLUDE_VM_STRUCTS 1 |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
70 #endif |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
71 |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
72 #if INCLUDE_VM_STRUCTS |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
73 #define NOT_VM_STRUCTS_RETURN /* next token must be ; */ |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
74 #define NOT_VM_STRUCTS_RETURN_(code) /* next token must be ; */ |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
75 #else |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
76 #define NOT_VM_STRUCTS_RETURN {} |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
77 #define NOT_VM_STRUCTS_RETURN_(code) { return code; } |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
78 #endif // INCLUDE_VM_STRUCTS |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
79 |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
80 #ifndef INCLUDE_JNI_CHECK |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
81 #define INCLUDE_JNI_CHECK 1 |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
82 #endif |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
83 |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
84 #if INCLUDE_JNI_CHECK |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
85 #define NOT_JNI_CHECK_RETURN /* next token must be ; */ |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
86 #define NOT_JNI_CHECK_RETURN_(code) /* next token must be ; */ |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
87 #else |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
88 #define NOT_JNI_CHECK_RETURN {} |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
89 #define NOT_JNI_CHECK_RETURN_(code) { return code; } |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
90 #endif // INCLUDE_JNI_CHECK |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
91 |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
92 #ifndef INCLUDE_SERVICES |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
93 #define INCLUDE_SERVICES 1 |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
94 #endif |
0 | 95 |
6854
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
96 #if INCLUDE_SERVICES |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
97 #define NOT_SERVICES_RETURN /* next token must be ; */ |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
98 #define NOT_SERVICES_RETURN_(code) /* next token must be ; */ |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
99 #else |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
100 #define NOT_SERVICES_RETURN {} |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
101 #define NOT_SERVICES_RETURN_(code) { return code; } |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
102 #endif // INCLUDE_SERVICES |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
103 |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
104 #ifndef INCLUDE_CDS |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
105 #define INCLUDE_CDS 1 |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
106 #endif |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
107 |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
108 #if INCLUDE_CDS |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
109 #define CDS_ONLY(x) x |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
110 #define NOT_CDS(x) |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
111 #define NOT_CDS_RETURN /* next token must be ; */ |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
112 #define NOT_CDS_RETURN_(code) /* next token must be ; */ |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
113 #else |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
114 #define CDS_ONLY(x) |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
115 #define NOT_CDS(x) x |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
116 #define NOT_CDS_RETURN {} |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
117 #define NOT_CDS_RETURN_(code) { return code; } |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
118 #endif // INCLUDE_CDS |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
119 |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
120 #ifndef INCLUDE_MANAGEMENT |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
121 #define INCLUDE_MANAGEMENT 1 |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
122 #endif // INCLUDE_MANAGEMENT |
0 | 123 |
6854
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
124 #if INCLUDE_MANAGEMENT |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
125 #define NOT_MANAGEMENT_RETURN /* next token must be ; */ |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
126 #define NOT_MANAGEMENT_RETURN_(code) /* next token must be ; */ |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
127 #else |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
128 #define NOT_MANAGEMENT_RETURN {} |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
129 #define NOT_MANAGEMENT_RETURN_(code) { return code; } |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
130 #endif // INCLUDE_MANAGEMENT |
0 | 131 |
6854
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
132 /* |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
133 * When INCLUDE_ALTERNATE_GCS is false the only garbage collectors |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
134 * included in the JVM are defaultNewGeneration and markCompact. |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
135 * |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
136 * When INCLUDE_ALTERNATE_GCS is true all garbage collectors are |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
137 * included in the JVM. |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
138 */ |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
139 #ifndef INCLUDE_ALTERNATE_GCS |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
140 #define INCLUDE_ALTERNATE_GCS 1 |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
141 #endif // INCLUDE_ALTERNATE_GCS |
0 | 142 |
6854
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
143 #if INCLUDE_ALTERNATE_GCS |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
144 #define NOT_ALTERNATE_GCS_RETURN /* next token must be ; */ |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
145 #define NOT_ALTERNATE_GCS_RETURN_(code) /* next token must be ; */ |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
146 #else |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
147 #define NOT_ALTERNATE_GCS_RETURN {} |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
148 #define NOT_ALTERNATE_GCS_RETURN_(code) { return code; } |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
149 #endif // INCLUDE_ALTERNATE_GCS |
0 | 150 |
6854
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
151 #ifndef INCLUDE_NMT |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
152 #define INCLUDE_NMT 1 |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
153 #endif // INCLUDE_NMT |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
154 |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
155 #if INCLUDE_NMT |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
156 #define NOT_NMT_RETURN /* next token must be ; */ |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
157 #define NOT_NMT_RETURN_(code) /* next token must be ; */ |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
158 #else |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
159 #define NOT_NMT_RETURN {} |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
160 #define NOT_NMT_RETURN_(code) { return code; } |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
161 #endif // INCLUDE_NMT |
0 | 162 |
163 // COMPILER1 variant | |
164 #ifdef COMPILER1 | |
165 #ifdef COMPILER2 | |
166 #define TIERED | |
167 #endif | |
168 #define COMPILER1_PRESENT(code) code | |
169 #else // COMPILER1 | |
170 #define COMPILER1_PRESENT(code) | |
171 #endif // COMPILER1 | |
172 | |
173 // COMPILER2 variant | |
174 #ifdef COMPILER2 | |
175 #define COMPILER2_PRESENT(code) code | |
453
c96030fff130
6684579: SoftReference processing can be made more efficient
ysr
parents:
337
diff
changeset
|
176 #define NOT_COMPILER2(code) |
0 | 177 #else // COMPILER2 |
178 #define COMPILER2_PRESENT(code) | |
453
c96030fff130
6684579: SoftReference processing can be made more efficient
ysr
parents:
337
diff
changeset
|
179 #define NOT_COMPILER2(code) code |
0 | 180 #endif // COMPILER2 |
181 | |
4559
723df37192d6
Make it possible again to build a real client libjvm, drop the UseGraal flag.
Gilles Duboscq <duboscq@ssw.jku.at>
parents:
3960
diff
changeset
|
182 #ifdef GRAAL |
5142
667c7bc2435b
Fix C++ code to allow successful build on Windows.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
5130
diff
changeset
|
183 #define GRAAL_ONLY(code) code |
5114
dad1ac9dba7d
finished first implementation of disabling runtime feedback selectively based on deoptimization history
Christian Haeubl <christian.haeubl@oracle.com>
parents:
4559
diff
changeset
|
184 #define NOT_GRAAL(code) |
7154
5d0bb7d52783
changes to support Graal co-existing with the other HotSpot compiler(s) and being used for explicit compilation requests and code installation via the Graal API
Doug Simon <doug.simon@oracle.com>
parents:
6948
diff
changeset
|
185 #if !defined(COMPILER1) && !defined(COMPILER2) |
5d0bb7d52783
changes to support Graal co-existing with the other HotSpot compiler(s) and being used for explicit compilation requests and code installation via the Graal API
Doug Simon <doug.simon@oracle.com>
parents:
6948
diff
changeset
|
186 // Graal is the only compiler in the system and so will be used for compilation |
5d0bb7d52783
changes to support Graal co-existing with the other HotSpot compiler(s) and being used for explicit compilation requests and code installation via the Graal API
Doug Simon <doug.simon@oracle.com>
parents:
6948
diff
changeset
|
187 // requests issued by the compile broker. |
5d0bb7d52783
changes to support Graal co-existing with the other HotSpot compiler(s) and being used for explicit compilation requests and code installation via the Graal API
Doug Simon <doug.simon@oracle.com>
parents:
6948
diff
changeset
|
188 #define GRAALVM |
5d0bb7d52783
changes to support Graal co-existing with the other HotSpot compiler(s) and being used for explicit compilation requests and code installation via the Graal API
Doug Simon <doug.simon@oracle.com>
parents:
6948
diff
changeset
|
189 #define GRAALVM_ONLY(code) code |
5d0bb7d52783
changes to support Graal co-existing with the other HotSpot compiler(s) and being used for explicit compilation requests and code installation via the Graal API
Doug Simon <doug.simon@oracle.com>
parents:
6948
diff
changeset
|
190 #define NOT_GRAALVM(code) |
4559
723df37192d6
Make it possible again to build a real client libjvm, drop the UseGraal flag.
Gilles Duboscq <duboscq@ssw.jku.at>
parents:
3960
diff
changeset
|
191 #else |
7154
5d0bb7d52783
changes to support Graal co-existing with the other HotSpot compiler(s) and being used for explicit compilation requests and code installation via the Graal API
Doug Simon <doug.simon@oracle.com>
parents:
6948
diff
changeset
|
192 // Graal is not the only compiler in the system and so will only be used for |
5d0bb7d52783
changes to support Graal co-existing with the other HotSpot compiler(s) and being used for explicit compilation requests and code installation via the Graal API
Doug Simon <doug.simon@oracle.com>
parents:
6948
diff
changeset
|
193 // compilation requests issued via the Graal API |
5d0bb7d52783
changes to support Graal co-existing with the other HotSpot compiler(s) and being used for explicit compilation requests and code installation via the Graal API
Doug Simon <doug.simon@oracle.com>
parents:
6948
diff
changeset
|
194 #define GRAALVM_ONLY(code) |
5d0bb7d52783
changes to support Graal co-existing with the other HotSpot compiler(s) and being used for explicit compilation requests and code installation via the Graal API
Doug Simon <doug.simon@oracle.com>
parents:
6948
diff
changeset
|
195 #define NOT_GRAALVM(code) code |
5d0bb7d52783
changes to support Graal co-existing with the other HotSpot compiler(s) and being used for explicit compilation requests and code installation via the Graal API
Doug Simon <doug.simon@oracle.com>
parents:
6948
diff
changeset
|
196 #endif |
5d0bb7d52783
changes to support Graal co-existing with the other HotSpot compiler(s) and being used for explicit compilation requests and code installation via the Graal API
Doug Simon <doug.simon@oracle.com>
parents:
6948
diff
changeset
|
197 #else // !GRAAL |
5142
667c7bc2435b
Fix C++ code to allow successful build on Windows.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
5130
diff
changeset
|
198 #define GRAAL_ONLY(code) |
5114
dad1ac9dba7d
finished first implementation of disabling runtime feedback selectively based on deoptimization history
Christian Haeubl <christian.haeubl@oracle.com>
parents:
4559
diff
changeset
|
199 #define NOT_GRAAL(code) code |
7154
5d0bb7d52783
changes to support Graal co-existing with the other HotSpot compiler(s) and being used for explicit compilation requests and code installation via the Graal API
Doug Simon <doug.simon@oracle.com>
parents:
6948
diff
changeset
|
200 #define GRAALVM_ONLY(code) |
5d0bb7d52783
changes to support Graal co-existing with the other HotSpot compiler(s) and being used for explicit compilation requests and code installation via the Graal API
Doug Simon <doug.simon@oracle.com>
parents:
6948
diff
changeset
|
201 #define NOT_GRAALVM(code) code |
5747
120820e30baa
added basic high-level interpreter support to HotSpot
Christian Haeubl <haeubl@ssw.jku.at>
parents:
5142
diff
changeset
|
202 #endif // GRAAL |
120820e30baa
added basic high-level interpreter support to HotSpot
Christian Haeubl <haeubl@ssw.jku.at>
parents:
5142
diff
changeset
|
203 |
120820e30baa
added basic high-level interpreter support to HotSpot
Christian Haeubl <haeubl@ssw.jku.at>
parents:
5142
diff
changeset
|
204 #ifdef HIGH_LEVEL_INTERPRETER |
120820e30baa
added basic high-level interpreter support to HotSpot
Christian Haeubl <haeubl@ssw.jku.at>
parents:
5142
diff
changeset
|
205 #define HIGH_LEVEL_INTERPRETER_ONLY(code) code |
120820e30baa
added basic high-level interpreter support to HotSpot
Christian Haeubl <haeubl@ssw.jku.at>
parents:
5142
diff
changeset
|
206 #define NOT_HIGH_LEVEL_INTERPRETER(code) |
120820e30baa
added basic high-level interpreter support to HotSpot
Christian Haeubl <haeubl@ssw.jku.at>
parents:
5142
diff
changeset
|
207 #else |
120820e30baa
added basic high-level interpreter support to HotSpot
Christian Haeubl <haeubl@ssw.jku.at>
parents:
5142
diff
changeset
|
208 #define HIGH_LEVEL_INTERPRETER_ONLY(code) |
120820e30baa
added basic high-level interpreter support to HotSpot
Christian Haeubl <haeubl@ssw.jku.at>
parents:
5142
diff
changeset
|
209 #define NOT_HIGH_LEVEL_INTERPRETER(code) code |
120820e30baa
added basic high-level interpreter support to HotSpot
Christian Haeubl <haeubl@ssw.jku.at>
parents:
5142
diff
changeset
|
210 #endif // HIGH_LEVEL_INTERPRETER |
4559
723df37192d6
Make it possible again to build a real client libjvm, drop the UseGraal flag.
Gilles Duboscq <duboscq@ssw.jku.at>
parents:
3960
diff
changeset
|
211 |
1783 | 212 #ifdef TIERED |
213 #define TIERED_ONLY(code) code | |
214 #define NOT_TIERED(code) | |
215 #else | |
216 #define TIERED_ONLY(code) | |
217 #define NOT_TIERED(code) code | |
218 #endif // TIERED | |
219 | |
0 | 220 |
221 // PRODUCT variant | |
222 #ifdef PRODUCT | |
223 #define PRODUCT_ONLY(code) code | |
224 #define NOT_PRODUCT(code) | |
1768
6ee479178066
6979444: add command line option to print command line flags descriptions
ikrylov
parents:
1692
diff
changeset
|
225 #define NOT_PRODUCT_ARG(arg) |
0 | 226 #define PRODUCT_RETURN {} |
227 #define PRODUCT_RETURN0 { return 0; } | |
228 #define PRODUCT_RETURN_(code) { code } | |
229 #else // PRODUCT | |
230 #define PRODUCT_ONLY(code) | |
231 #define NOT_PRODUCT(code) code | |
1768
6ee479178066
6979444: add command line option to print command line flags descriptions
ikrylov
parents:
1692
diff
changeset
|
232 #define NOT_PRODUCT_ARG(arg) arg, |
0 | 233 #define PRODUCT_RETURN /*next token must be ;*/ |
234 #define PRODUCT_RETURN0 /*next token must be ;*/ | |
235 #define PRODUCT_RETURN_(code) /*next token must be ;*/ | |
236 #endif // PRODUCT | |
237 | |
238 #ifdef CHECK_UNHANDLED_OOPS | |
239 #define CHECK_UNHANDLED_OOPS_ONLY(code) code | |
240 #define NOT_CHECK_UNHANDLED_OOPS(code) | |
241 #else | |
242 #define CHECK_UNHANDLED_OOPS_ONLY(code) | |
243 #define NOT_CHECK_UNHANDLED_OOPS(code) code | |
244 #endif // CHECK_UNHANDLED_OOPS | |
245 | |
246 #ifdef CC_INTERP | |
247 #define CC_INTERP_ONLY(code) code | |
248 #define NOT_CC_INTERP(code) | |
249 #else | |
250 #define CC_INTERP_ONLY(code) | |
251 #define NOT_CC_INTERP(code) code | |
252 #endif // CC_INTERP | |
253 | |
254 #ifdef ASSERT | |
255 #define DEBUG_ONLY(code) code | |
256 #define NOT_DEBUG(code) | |
809
6e2afda171db
6849716: BitMap - performance regression introduced with G1
jcoomes
parents:
453
diff
changeset
|
257 #define NOT_DEBUG_RETURN /*next token must be ;*/ |
0 | 258 // Historical. |
259 #define debug_only(code) code | |
260 #else // ASSERT | |
261 #define DEBUG_ONLY(code) | |
262 #define NOT_DEBUG(code) code | |
809
6e2afda171db
6849716: BitMap - performance regression introduced with G1
jcoomes
parents:
453
diff
changeset
|
263 #define NOT_DEBUG_RETURN {} |
0 | 264 #define debug_only(code) |
265 #endif // ASSERT | |
266 | |
267 #ifdef _LP64 | |
268 #define LP64_ONLY(code) code | |
269 #define NOT_LP64(code) | |
270 #else // !_LP64 | |
271 #define LP64_ONLY(code) | |
272 #define NOT_LP64(code) code | |
273 #endif // _LP64 | |
274 | |
275 #ifdef LINUX | |
276 #define LINUX_ONLY(code) code | |
277 #define NOT_LINUX(code) | |
278 #else | |
279 #define LINUX_ONLY(code) | |
280 #define NOT_LINUX(code) code | |
281 #endif | |
282 | |
283 #ifdef SOLARIS | |
284 #define SOLARIS_ONLY(code) code | |
285 #define NOT_SOLARIS(code) | |
286 #else | |
287 #define SOLARIS_ONLY(code) | |
288 #define NOT_SOLARIS(code) code | |
289 #endif | |
290 | |
291 #ifdef _WINDOWS | |
292 #define WINDOWS_ONLY(code) code | |
293 #define NOT_WINDOWS(code) | |
294 #else | |
295 #define WINDOWS_ONLY(code) | |
296 #define NOT_WINDOWS(code) code | |
297 #endif | |
298 | |
3960 | 299 #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__) |
300 #define BSD_ONLY(code) code | |
301 #define NOT_BSD(code) | |
302 #else | |
303 #define BSD_ONLY(code) | |
304 #define NOT_BSD(code) code | |
305 #endif | |
306 | |
2321
1b4e6a5d98e0
7012914: JSR 292 MethodHandlesTest C1: frame::verify_return_pc(return_address) failed: must be a return pc
twisti
parents:
2195
diff
changeset
|
307 #ifdef _WIN64 |
1b4e6a5d98e0
7012914: JSR 292 MethodHandlesTest C1: frame::verify_return_pc(return_address) failed: must be a return pc
twisti
parents:
2195
diff
changeset
|
308 #define WIN64_ONLY(code) code |
1b4e6a5d98e0
7012914: JSR 292 MethodHandlesTest C1: frame::verify_return_pc(return_address) failed: must be a return pc
twisti
parents:
2195
diff
changeset
|
309 #define NOT_WIN64(code) |
1b4e6a5d98e0
7012914: JSR 292 MethodHandlesTest C1: frame::verify_return_pc(return_address) failed: must be a return pc
twisti
parents:
2195
diff
changeset
|
310 #else |
1b4e6a5d98e0
7012914: JSR 292 MethodHandlesTest C1: frame::verify_return_pc(return_address) failed: must be a return pc
twisti
parents:
2195
diff
changeset
|
311 #define WIN64_ONLY(code) |
1b4e6a5d98e0
7012914: JSR 292 MethodHandlesTest C1: frame::verify_return_pc(return_address) failed: must be a return pc
twisti
parents:
2195
diff
changeset
|
312 #define NOT_WIN64(code) code |
1b4e6a5d98e0
7012914: JSR 292 MethodHandlesTest C1: frame::verify_return_pc(return_address) failed: must be a return pc
twisti
parents:
2195
diff
changeset
|
313 #endif |
1b4e6a5d98e0
7012914: JSR 292 MethodHandlesTest C1: frame::verify_return_pc(return_address) failed: must be a return pc
twisti
parents:
2195
diff
changeset
|
314 |
6926 | 315 #if defined(ZERO) |
316 #define ZERO_ONLY(code) code | |
317 #define NOT_ZERO(code) | |
318 #else | |
319 #define ZERO_ONLY(code) | |
320 #define NOT_ZERO(code) code | |
321 #endif | |
322 | |
323 #if defined(SHARK) | |
324 #define SHARK_ONLY(code) code | |
325 #define NOT_SHARK(code) | |
326 #else | |
327 #define SHARK_ONLY(code) | |
328 #define NOT_SHARK(code) code | |
329 #endif | |
330 | |
304 | 331 #if defined(IA32) || defined(AMD64) |
332 #define X86 | |
333 #define X86_ONLY(code) code | |
1692 | 334 #define NOT_X86(code) |
304 | 335 #else |
336 #undef X86 | |
337 #define X86_ONLY(code) | |
1692 | 338 #define NOT_X86(code) code |
304 | 339 #endif |
340 | |
0 | 341 #ifdef IA32 |
342 #define IA32_ONLY(code) code | |
343 #define NOT_IA32(code) | |
344 #else | |
345 #define IA32_ONLY(code) | |
346 #define NOT_IA32(code) code | |
347 #endif | |
348 | |
349 #ifdef IA64 | |
350 #define IA64_ONLY(code) code | |
351 #define NOT_IA64(code) | |
352 #else | |
353 #define IA64_ONLY(code) | |
354 #define NOT_IA64(code) code | |
355 #endif | |
356 | |
357 #ifdef AMD64 | |
358 #define AMD64_ONLY(code) code | |
359 #define NOT_AMD64(code) | |
360 #else | |
361 #define AMD64_ONLY(code) | |
362 #define NOT_AMD64(code) code | |
363 #endif | |
364 | |
365 #ifdef SPARC | |
366 #define SPARC_ONLY(code) code | |
367 #define NOT_SPARC(code) | |
368 #else | |
369 #define SPARC_ONLY(code) | |
370 #define NOT_SPARC(code) code | |
371 #endif | |
372 | |
1681
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
373 #ifdef PPC |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
374 #define PPC_ONLY(code) code |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
375 #define NOT_PPC(code) |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
376 #else |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
377 #define PPC_ONLY(code) |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
378 #define NOT_PPC(code) code |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
379 #endif |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
380 |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
381 #ifdef E500V2 |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
382 #define E500V2_ONLY(code) code |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
383 #define NOT_E500V2(code) |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
384 #else |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
385 #define E500V2_ONLY(code) |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
386 #define NOT_E500V2(code) code |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
387 #endif |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
388 |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
389 |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
390 #ifdef ARM |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
391 #define ARM_ONLY(code) code |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
392 #define NOT_ARM(code) |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
393 #else |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
394 #define ARM_ONLY(code) |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
395 #define NOT_ARM(code) code |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
396 #endif |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
397 |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
398 #ifdef JAVASE_EMBEDDED |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
399 #define EMBEDDED_ONLY(code) code |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
400 #define NOT_EMBEDDED(code) |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
401 #else |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
402 #define EMBEDDED_ONLY(code) |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
403 #define NOT_EMBEDDED(code) code |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
404 #endif |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
405 |
0 | 406 #define define_pd_global(type, name, value) const type pd_##name = value; |
1972 | 407 |
408 #endif // SHARE_VM_UTILITIES_MACROS_HPP |