Mercurial > hg > graal-jvmci-8
annotate src/share/vm/utilities/macros.hpp @ 24164:f98ea2d742a2
fixed missing exception propagation (JDK-8185790)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 08 Aug 2017 10:06:50 +0200 |
parents | 54f09016769e |
children |
rev | line source |
---|---|
0 | 1 /* |
22851
ddce0b7cee93
8072383: resolve conflicts between open and closed ports
dlong
parents:
14456
diff
changeset
|
2 * Copyright (c) 1997, 2015, 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 /* |
8001
db9981fd3124
8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents:
6926
diff
changeset
|
133 * When INCLUDE_ALL_GCS is false the only garbage collectors |
6854
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 * |
8001
db9981fd3124
8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents:
6926
diff
changeset
|
136 * When INCLUDE_ALL_GCS is true all garbage collectors are |
6854
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 */ |
8001
db9981fd3124
8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents:
6926
diff
changeset
|
139 #ifndef INCLUDE_ALL_GCS |
db9981fd3124
8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents:
6926
diff
changeset
|
140 #define INCLUDE_ALL_GCS 1 |
db9981fd3124
8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents:
6926
diff
changeset
|
141 #endif // INCLUDE_ALL_GCS |
0 | 142 |
8001
db9981fd3124
8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents:
6926
diff
changeset
|
143 #if INCLUDE_ALL_GCS |
db9981fd3124
8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents:
6926
diff
changeset
|
144 #define NOT_ALL_GCS_RETURN /* next token must be ; */ |
db9981fd3124
8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents:
6926
diff
changeset
|
145 #define NOT_ALL_GCS_RETURN_(code) /* next token must be ; */ |
6854
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
3960
diff
changeset
|
146 #else |
8001
db9981fd3124
8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents:
6926
diff
changeset
|
147 #define NOT_ALL_GCS_RETURN {} |
db9981fd3124
8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents:
6926
diff
changeset
|
148 #define NOT_ALL_GCS_RETURN_(code) { return code; } |
db9981fd3124
8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents:
6926
diff
changeset
|
149 #endif // INCLUDE_ALL_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 |
10405 | 163 #ifndef INCLUDE_TRACE |
164 #define INCLUDE_TRACE 1 | |
165 #endif // INCLUDE_TRACE | |
166 | |
22298 | 167 #ifndef INCLUDE_JVMCI |
168 #define INCLUDE_JVMCI 1 | |
169 #endif | |
170 | |
171 #if INCLUDE_JVMCI | |
172 #define JVMCI_ONLY(code) code | |
173 #define NOT_JVMCI(code) | |
174 #define IS_JVMCI_DEFINED true | |
175 #else | |
176 #define JVMCI_ONLY(code) | |
177 #define NOT_JVMCI(code) code | |
178 #define IS_JVMCI_DEFINED false | |
22440
800a7b2335b0
JVMCI -> INCLUDE_JVMCI renames
Doug Simon <doug.simon@oracle.com>
parents:
22298
diff
changeset
|
179 #endif // INCLUDE_JVMCI |
22298 | 180 |
0 | 181 // COMPILER1 variant |
182 #ifdef COMPILER1 | |
23696
54f09016769e
Make sure the client VM can build properly
Gilles Duboscq <gilles.m.duboscq@oracle.com>
parents:
23404
diff
changeset
|
183 #if defined(COMPILER2) |
0 | 184 #define TIERED |
185 #endif | |
186 #define COMPILER1_PRESENT(code) code | |
187 #else // COMPILER1 | |
188 #define COMPILER1_PRESENT(code) | |
189 #endif // COMPILER1 | |
190 | |
191 // COMPILER2 variant | |
192 #ifdef COMPILER2 | |
193 #define COMPILER2_PRESENT(code) code | |
453
c96030fff130
6684579: SoftReference processing can be made more efficient
ysr
parents:
337
diff
changeset
|
194 #define NOT_COMPILER2(code) |
0 | 195 #else // COMPILER2 |
196 #define COMPILER2_PRESENT(code) | |
453
c96030fff130
6684579: SoftReference processing can be made more efficient
ysr
parents:
337
diff
changeset
|
197 #define NOT_COMPILER2(code) code |
0 | 198 #endif // COMPILER2 |
199 | |
23404
3ef45d0a6d77
Remove jvmci VM configuration, and backport UseJVMCICompiler flag.
Roland Schatz <roland.schatz@oracle.com>
parents:
23286
diff
changeset
|
200 // COMPILER2 or JVMCI |
3ef45d0a6d77
Remove jvmci VM configuration, and backport UseJVMCICompiler flag.
Roland Schatz <roland.schatz@oracle.com>
parents:
23286
diff
changeset
|
201 #if defined(COMPILER2) || INCLUDE_JVMCI |
3ef45d0a6d77
Remove jvmci VM configuration, and backport UseJVMCICompiler flag.
Roland Schatz <roland.schatz@oracle.com>
parents:
23286
diff
changeset
|
202 #define COMPILER2_OR_JVMCI 1 |
3ef45d0a6d77
Remove jvmci VM configuration, and backport UseJVMCICompiler flag.
Roland Schatz <roland.schatz@oracle.com>
parents:
23286
diff
changeset
|
203 #define COMPILER2_OR_JVMCI_PRESENT(code) code |
3ef45d0a6d77
Remove jvmci VM configuration, and backport UseJVMCICompiler flag.
Roland Schatz <roland.schatz@oracle.com>
parents:
23286
diff
changeset
|
204 #define NOT_COMPILER2_OR_JVMCI(code) |
3ef45d0a6d77
Remove jvmci VM configuration, and backport UseJVMCICompiler flag.
Roland Schatz <roland.schatz@oracle.com>
parents:
23286
diff
changeset
|
205 #else |
3ef45d0a6d77
Remove jvmci VM configuration, and backport UseJVMCICompiler flag.
Roland Schatz <roland.schatz@oracle.com>
parents:
23286
diff
changeset
|
206 #define COMPILER2_OR_JVMCI 0 |
3ef45d0a6d77
Remove jvmci VM configuration, and backport UseJVMCICompiler flag.
Roland Schatz <roland.schatz@oracle.com>
parents:
23286
diff
changeset
|
207 #define COMPILER2_OR_JVMCI_PRESENT(code) |
3ef45d0a6d77
Remove jvmci VM configuration, and backport UseJVMCICompiler flag.
Roland Schatz <roland.schatz@oracle.com>
parents:
23286
diff
changeset
|
208 #define NOT_COMPILER2_OR_JVMCI(code) code |
22451
2229c0e4fe21
guard against COMPILERJVMCI and COMPILER2 both being defined since they are mutually exclusive
Doug Simon <doug.simon@oracle.com>
parents:
22440
diff
changeset
|
209 #endif |
2229c0e4fe21
guard against COMPILERJVMCI and COMPILER2 both being defined since they are mutually exclusive
Doug Simon <doug.simon@oracle.com>
parents:
22440
diff
changeset
|
210 |
1783 | 211 #ifdef TIERED |
212 #define TIERED_ONLY(code) code | |
213 #define NOT_TIERED(code) | |
14124
7ad529321294
make: remove GRAALVM and introduce COMPILERGRAAL. fix client hosted-mode
Bernhard Urban <bernhard.urban@jku.at>
parents:
14107
diff
changeset
|
214 #else // TIERED |
1783 | 215 #define TIERED_ONLY(code) |
216 #define NOT_TIERED(code) code | |
217 #endif // TIERED | |
218 | |
0 | 219 |
220 // PRODUCT variant | |
221 #ifdef PRODUCT | |
222 #define PRODUCT_ONLY(code) code | |
223 #define NOT_PRODUCT(code) | |
1768
6ee479178066
6979444: add command line option to print command line flags descriptions
ikrylov
parents:
1692
diff
changeset
|
224 #define NOT_PRODUCT_ARG(arg) |
0 | 225 #define PRODUCT_RETURN {} |
226 #define PRODUCT_RETURN0 { return 0; } | |
227 #define PRODUCT_RETURN_(code) { code } | |
228 #else // PRODUCT | |
229 #define PRODUCT_ONLY(code) | |
230 #define NOT_PRODUCT(code) code | |
1768
6ee479178066
6979444: add command line option to print command line flags descriptions
ikrylov
parents:
1692
diff
changeset
|
231 #define NOT_PRODUCT_ARG(arg) arg, |
0 | 232 #define PRODUCT_RETURN /*next token must be ;*/ |
233 #define PRODUCT_RETURN0 /*next token must be ;*/ | |
234 #define PRODUCT_RETURN_(code) /*next token must be ;*/ | |
235 #endif // PRODUCT | |
236 | |
237 #ifdef CHECK_UNHANDLED_OOPS | |
238 #define CHECK_UNHANDLED_OOPS_ONLY(code) code | |
239 #define NOT_CHECK_UNHANDLED_OOPS(code) | |
240 #else | |
241 #define CHECK_UNHANDLED_OOPS_ONLY(code) | |
242 #define NOT_CHECK_UNHANDLED_OOPS(code) code | |
243 #endif // CHECK_UNHANDLED_OOPS | |
244 | |
245 #ifdef CC_INTERP | |
246 #define CC_INTERP_ONLY(code) code | |
247 #define NOT_CC_INTERP(code) | |
248 #else | |
249 #define CC_INTERP_ONLY(code) | |
250 #define NOT_CC_INTERP(code) code | |
251 #endif // CC_INTERP | |
252 | |
253 #ifdef ASSERT | |
254 #define DEBUG_ONLY(code) code | |
255 #define NOT_DEBUG(code) | |
809
6e2afda171db
6849716: BitMap - performance regression introduced with G1
jcoomes
parents:
453
diff
changeset
|
256 #define NOT_DEBUG_RETURN /*next token must be ;*/ |
0 | 257 // Historical. |
258 #define debug_only(code) code | |
259 #else // ASSERT | |
260 #define DEBUG_ONLY(code) | |
261 #define NOT_DEBUG(code) code | |
809
6e2afda171db
6849716: BitMap - performance regression introduced with G1
jcoomes
parents:
453
diff
changeset
|
262 #define NOT_DEBUG_RETURN {} |
0 | 263 #define debug_only(code) |
264 #endif // ASSERT | |
265 | |
266 #ifdef _LP64 | |
267 #define LP64_ONLY(code) code | |
268 #define NOT_LP64(code) | |
269 #else // !_LP64 | |
270 #define LP64_ONLY(code) | |
271 #define NOT_LP64(code) code | |
272 #endif // _LP64 | |
273 | |
274 #ifdef LINUX | |
275 #define LINUX_ONLY(code) code | |
276 #define NOT_LINUX(code) | |
277 #else | |
278 #define LINUX_ONLY(code) | |
279 #define NOT_LINUX(code) code | |
280 #endif | |
281 | |
14411 | 282 #ifdef AIX |
283 #define AIX_ONLY(code) code | |
284 #define NOT_AIX(code) | |
285 #else | |
286 #define AIX_ONLY(code) | |
287 #define NOT_AIX(code) code | |
288 #endif | |
289 | |
0 | 290 #ifdef SOLARIS |
291 #define SOLARIS_ONLY(code) code | |
292 #define NOT_SOLARIS(code) | |
293 #else | |
294 #define SOLARIS_ONLY(code) | |
295 #define NOT_SOLARIS(code) code | |
296 #endif | |
297 | |
298 #ifdef _WINDOWS | |
299 #define WINDOWS_ONLY(code) code | |
300 #define NOT_WINDOWS(code) | |
301 #else | |
302 #define WINDOWS_ONLY(code) | |
303 #define NOT_WINDOWS(code) code | |
304 #endif | |
305 | |
3960 | 306 #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__) |
307 #define BSD_ONLY(code) code | |
308 #define NOT_BSD(code) | |
309 #else | |
310 #define BSD_ONLY(code) | |
311 #define NOT_BSD(code) code | |
312 #endif | |
313 | |
2321
1b4e6a5d98e0
7012914: JSR 292 MethodHandlesTest C1: frame::verify_return_pc(return_address) failed: must be a return pc
twisti
parents:
2195
diff
changeset
|
314 #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
|
315 #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
|
316 #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
|
317 #else |
1b4e6a5d98e0
7012914: JSR 292 MethodHandlesTest C1: frame::verify_return_pc(return_address) failed: must be a return pc
twisti
parents:
2195
diff
changeset
|
318 #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
|
319 #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
|
320 #endif |
1b4e6a5d98e0
7012914: JSR 292 MethodHandlesTest C1: frame::verify_return_pc(return_address) failed: must be a return pc
twisti
parents:
2195
diff
changeset
|
321 |
6926 | 322 #if defined(ZERO) |
323 #define ZERO_ONLY(code) code | |
324 #define NOT_ZERO(code) | |
325 #else | |
326 #define ZERO_ONLY(code) | |
327 #define NOT_ZERO(code) code | |
328 #endif | |
329 | |
330 #if defined(SHARK) | |
331 #define SHARK_ONLY(code) code | |
332 #define NOT_SHARK(code) | |
333 #else | |
334 #define SHARK_ONLY(code) | |
335 #define NOT_SHARK(code) code | |
336 #endif | |
337 | |
304 | 338 #if defined(IA32) || defined(AMD64) |
339 #define X86 | |
340 #define X86_ONLY(code) code | |
1692 | 341 #define NOT_X86(code) |
304 | 342 #else |
343 #undef X86 | |
344 #define X86_ONLY(code) | |
1692 | 345 #define NOT_X86(code) code |
304 | 346 #endif |
347 | |
0 | 348 #ifdef IA32 |
349 #define IA32_ONLY(code) code | |
350 #define NOT_IA32(code) | |
351 #else | |
352 #define IA32_ONLY(code) | |
353 #define NOT_IA32(code) code | |
354 #endif | |
355 | |
14403
75ef1a499665
8019973: PPC64 (part 11): Fix IA64 preprocessor conditionals on AIX.
goetz
parents:
14392
diff
changeset
|
356 // This is a REALLY BIG HACK, but on AIX <sys/systemcfg.h> unconditionally defines IA64. |
75ef1a499665
8019973: PPC64 (part 11): Fix IA64 preprocessor conditionals on AIX.
goetz
parents:
14392
diff
changeset
|
357 // At least on AIX 7.1 this is a real problem because 'systemcfg.h' is indirectly included |
75ef1a499665
8019973: PPC64 (part 11): Fix IA64 preprocessor conditionals on AIX.
goetz
parents:
14392
diff
changeset
|
358 // by 'pthread.h' and other common system headers. |
75ef1a499665
8019973: PPC64 (part 11): Fix IA64 preprocessor conditionals on AIX.
goetz
parents:
14392
diff
changeset
|
359 |
75ef1a499665
8019973: PPC64 (part 11): Fix IA64 preprocessor conditionals on AIX.
goetz
parents:
14392
diff
changeset
|
360 #if defined(IA64) && !defined(AIX) |
0 | 361 #define IA64_ONLY(code) code |
362 #define NOT_IA64(code) | |
363 #else | |
364 #define IA64_ONLY(code) | |
365 #define NOT_IA64(code) code | |
366 #endif | |
367 | |
368 #ifdef AMD64 | |
369 #define AMD64_ONLY(code) code | |
370 #define NOT_AMD64(code) | |
371 #else | |
372 #define AMD64_ONLY(code) | |
373 #define NOT_AMD64(code) code | |
374 #endif | |
375 | |
376 #ifdef SPARC | |
377 #define SPARC_ONLY(code) code | |
378 #define NOT_SPARC(code) | |
379 #else | |
380 #define SPARC_ONLY(code) | |
381 #define NOT_SPARC(code) code | |
382 #endif | |
383 | |
14390 | 384 #if defined(PPC32) || defined(PPC64) |
385 #ifndef PPC | |
386 #define PPC | |
387 #endif | |
1681
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
388 #define PPC_ONLY(code) code |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
389 #define NOT_PPC(code) |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
390 #else |
14390 | 391 #undef PPC |
1681
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
392 #define PPC_ONLY(code) |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
393 #define NOT_PPC(code) code |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
394 #endif |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
395 |
14390 | 396 #ifdef PPC32 |
397 #define PPC32_ONLY(code) code | |
398 #define NOT_PPC32(code) | |
399 #else | |
400 #define PPC32_ONLY(code) | |
401 #define NOT_PPC32(code) code | |
402 #endif | |
403 | |
404 #ifdef PPC64 | |
405 #define PPC64_ONLY(code) code | |
406 #define NOT_PPC64(code) | |
407 #else | |
408 #define PPC64_ONLY(code) | |
409 #define NOT_PPC64(code) code | |
410 #endif | |
411 | |
1681
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
412 #ifdef E500V2 |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
413 #define E500V2_ONLY(code) code |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
414 #define NOT_E500V2(code) |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
415 #else |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
416 #define E500V2_ONLY(code) |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
417 #define NOT_E500V2(code) code |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
418 #endif |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
419 |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
420 #ifdef ARM |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
421 #define ARM_ONLY(code) code |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
422 #define NOT_ARM(code) |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
423 #else |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
424 #define ARM_ONLY(code) |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
425 #define NOT_ARM(code) code |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
426 #endif |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
427 |
22851
ddce0b7cee93
8072383: resolve conflicts between open and closed ports
dlong
parents:
14456
diff
changeset
|
428 #ifdef ARM32 |
ddce0b7cee93
8072383: resolve conflicts between open and closed ports
dlong
parents:
14456
diff
changeset
|
429 #define ARM32_ONLY(code) code |
ddce0b7cee93
8072383: resolve conflicts between open and closed ports
dlong
parents:
14456
diff
changeset
|
430 #define NOT_ARM32(code) |
ddce0b7cee93
8072383: resolve conflicts between open and closed ports
dlong
parents:
14456
diff
changeset
|
431 #else |
ddce0b7cee93
8072383: resolve conflicts between open and closed ports
dlong
parents:
14456
diff
changeset
|
432 #define ARM32_ONLY(code) |
ddce0b7cee93
8072383: resolve conflicts between open and closed ports
dlong
parents:
14456
diff
changeset
|
433 #define NOT_ARM32(code) code |
ddce0b7cee93
8072383: resolve conflicts between open and closed ports
dlong
parents:
14456
diff
changeset
|
434 #endif |
ddce0b7cee93
8072383: resolve conflicts between open and closed ports
dlong
parents:
14456
diff
changeset
|
435 |
1681
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
436 #ifdef JAVASE_EMBEDDED |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
437 #define EMBEDDED_ONLY(code) code |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
438 #define NOT_EMBEDDED(code) |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
439 #else |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
440 #define EMBEDDED_ONLY(code) |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
441 #define NOT_EMBEDDED(code) code |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
442 #endif |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
443 |
0 | 444 #define define_pd_global(type, name, value) const type pd_##name = value; |
1972 | 445 |
446 #endif // SHARE_VM_UTILITIES_MACROS_HPP |