annotate src/share/vm/utilities/macros.hpp @ 10408:836a62f43af9

Merge with http://hg.openjdk.java.net/hsx/hsx25/hotspot/
author Doug Simon <doug.simon@oracle.com>
date Wed, 19 Jun 2013 10:45:56 +0200
parents c76b43ed5089 f2110083203d
children 800057208a2c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
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
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: 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
a61af66fc99e Initial load
duke
parents:
diff changeset
22 *
a61af66fc99e Initial load
duke
parents:
diff changeset
23 */
a61af66fc99e Initial load
duke
parents:
diff changeset
24
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1796
diff changeset
25 #ifndef SHARE_VM_UTILITIES_MACROS_HPP
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1796
diff changeset
26 #define SHARE_VM_UTILITIES_MACROS_HPP
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1796
diff changeset
27
0
a61af66fc99e Initial load
duke
parents:
diff changeset
28 // Use this to mark code that needs to be cleaned up (for development only)
a61af66fc99e Initial load
duke
parents:
diff changeset
29 #define NEEDS_CLEANUP
a61af66fc99e Initial load
duke
parents:
diff changeset
30
a61af66fc99e Initial load
duke
parents:
diff changeset
31 // Makes a string of the argument (which is not macro-expanded)
a61af66fc99e Initial load
duke
parents:
diff changeset
32 #define STR(a) #a
a61af66fc99e Initial load
duke
parents:
diff changeset
33
a61af66fc99e Initial load
duke
parents:
diff changeset
34 // Makes a string of the macro expansion of a
a61af66fc99e Initial load
duke
parents:
diff changeset
35 #define XSTR(a) STR(a)
a61af66fc99e Initial load
duke
parents:
diff changeset
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
a61af66fc99e Initial load
duke
parents:
diff changeset
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
a61af66fc99e Initial load
duke
parents:
diff changeset
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
a61af66fc99e Initial load
duke
parents:
diff changeset
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
a61af66fc99e Initial load
duke
parents:
diff changeset
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
a61af66fc99e Initial load
duke
parents:
diff changeset
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
a61af66fc99e Initial load
duke
parents:
diff changeset
162
10405
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 8001
diff changeset
163 #ifndef INCLUDE_TRACE
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 8001
diff changeset
164 #define INCLUDE_TRACE 1
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 8001
diff changeset
165 #endif // INCLUDE_TRACE
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 8001
diff changeset
166
0
a61af66fc99e Initial load
duke
parents:
diff changeset
167 // COMPILER1 variant
a61af66fc99e Initial load
duke
parents:
diff changeset
168 #ifdef COMPILER1
a61af66fc99e Initial load
duke
parents:
diff changeset
169 #ifdef COMPILER2
a61af66fc99e Initial load
duke
parents:
diff changeset
170 #define TIERED
a61af66fc99e Initial load
duke
parents:
diff changeset
171 #endif
a61af66fc99e Initial load
duke
parents:
diff changeset
172 #define COMPILER1_PRESENT(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
173 #else // COMPILER1
a61af66fc99e Initial load
duke
parents:
diff changeset
174 #define COMPILER1_PRESENT(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
175 #endif // COMPILER1
a61af66fc99e Initial load
duke
parents:
diff changeset
176
a61af66fc99e Initial load
duke
parents:
diff changeset
177 // COMPILER2 variant
a61af66fc99e Initial load
duke
parents:
diff changeset
178 #ifdef COMPILER2
a61af66fc99e Initial load
duke
parents:
diff changeset
179 #define COMPILER2_PRESENT(code) code
453
c96030fff130 6684579: SoftReference processing can be made more efficient
ysr
parents: 337
diff changeset
180 #define NOT_COMPILER2(code)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
181 #else // COMPILER2
a61af66fc99e Initial load
duke
parents:
diff changeset
182 #define COMPILER2_PRESENT(code)
453
c96030fff130 6684579: SoftReference processing can be made more efficient
ysr
parents: 337
diff changeset
183 #define NOT_COMPILER2(code) code
0
a61af66fc99e Initial load
duke
parents:
diff changeset
184 #endif // COMPILER2
a61af66fc99e Initial load
duke
parents:
diff changeset
185
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
186 #ifdef GRAAL
5142
667c7bc2435b Fix C++ code to allow successful build on Windows.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents: 5130
diff changeset
187 #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
188 #define NOT_GRAAL(code)
9760
c76b43ed5089 Added infrastructure for recording invoked methods in the profiling information.
Christian Haeubl <haeubl@ssw.jku.at>
parents: 8151
diff changeset
189 #define IS_GRAAL_DEFINED true
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
190 #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
191 // 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
192 // 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
193 #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
194 #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
195 #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
196 #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
197 // 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
198 // 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
199 #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
200 #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
201 #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
202 #else // !GRAAL
5142
667c7bc2435b Fix C++ code to allow successful build on Windows.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents: 5130
diff changeset
203 #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
204 #define NOT_GRAAL(code) code
9760
c76b43ed5089 Added infrastructure for recording invoked methods in the profiling information.
Christian Haeubl <haeubl@ssw.jku.at>
parents: 8151
diff changeset
205 #define IS_GRAAL_DEFINED false
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
206 #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
207 #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
208 #endif // GRAAL
120820e30baa added basic high-level interpreter support to HotSpot
Christian Haeubl <haeubl@ssw.jku.at>
parents: 5142
diff changeset
209
1783
d5d065957597 6953144: Tiered compilation
iveresov
parents: 1692
diff changeset
210 #ifdef TIERED
d5d065957597 6953144: Tiered compilation
iveresov
parents: 1692
diff changeset
211 #define TIERED_ONLY(code) code
d5d065957597 6953144: Tiered compilation
iveresov
parents: 1692
diff changeset
212 #define NOT_TIERED(code)
d5d065957597 6953144: Tiered compilation
iveresov
parents: 1692
diff changeset
213 #else
d5d065957597 6953144: Tiered compilation
iveresov
parents: 1692
diff changeset
214 #define TIERED_ONLY(code)
d5d065957597 6953144: Tiered compilation
iveresov
parents: 1692
diff changeset
215 #define NOT_TIERED(code) code
d5d065957597 6953144: Tiered compilation
iveresov
parents: 1692
diff changeset
216 #endif // TIERED
d5d065957597 6953144: Tiered compilation
iveresov
parents: 1692
diff changeset
217
0
a61af66fc99e Initial load
duke
parents:
diff changeset
218
a61af66fc99e Initial load
duke
parents:
diff changeset
219 // PRODUCT variant
a61af66fc99e Initial load
duke
parents:
diff changeset
220 #ifdef PRODUCT
a61af66fc99e Initial load
duke
parents:
diff changeset
221 #define PRODUCT_ONLY(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
222 #define NOT_PRODUCT(code)
1768
6ee479178066 6979444: add command line option to print command line flags descriptions
ikrylov
parents: 1692
diff changeset
223 #define NOT_PRODUCT_ARG(arg)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
224 #define PRODUCT_RETURN {}
a61af66fc99e Initial load
duke
parents:
diff changeset
225 #define PRODUCT_RETURN0 { return 0; }
a61af66fc99e Initial load
duke
parents:
diff changeset
226 #define PRODUCT_RETURN_(code) { code }
a61af66fc99e Initial load
duke
parents:
diff changeset
227 #else // PRODUCT
a61af66fc99e Initial load
duke
parents:
diff changeset
228 #define PRODUCT_ONLY(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
229 #define NOT_PRODUCT(code) code
1768
6ee479178066 6979444: add command line option to print command line flags descriptions
ikrylov
parents: 1692
diff changeset
230 #define NOT_PRODUCT_ARG(arg) arg,
0
a61af66fc99e Initial load
duke
parents:
diff changeset
231 #define PRODUCT_RETURN /*next token must be ;*/
a61af66fc99e Initial load
duke
parents:
diff changeset
232 #define PRODUCT_RETURN0 /*next token must be ;*/
a61af66fc99e Initial load
duke
parents:
diff changeset
233 #define PRODUCT_RETURN_(code) /*next token must be ;*/
a61af66fc99e Initial load
duke
parents:
diff changeset
234 #endif // PRODUCT
a61af66fc99e Initial load
duke
parents:
diff changeset
235
a61af66fc99e Initial load
duke
parents:
diff changeset
236 #ifdef CHECK_UNHANDLED_OOPS
a61af66fc99e Initial load
duke
parents:
diff changeset
237 #define CHECK_UNHANDLED_OOPS_ONLY(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
238 #define NOT_CHECK_UNHANDLED_OOPS(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
239 #else
a61af66fc99e Initial load
duke
parents:
diff changeset
240 #define CHECK_UNHANDLED_OOPS_ONLY(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
241 #define NOT_CHECK_UNHANDLED_OOPS(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
242 #endif // CHECK_UNHANDLED_OOPS
a61af66fc99e Initial load
duke
parents:
diff changeset
243
a61af66fc99e Initial load
duke
parents:
diff changeset
244 #ifdef CC_INTERP
a61af66fc99e Initial load
duke
parents:
diff changeset
245 #define CC_INTERP_ONLY(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
246 #define NOT_CC_INTERP(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
247 #else
a61af66fc99e Initial load
duke
parents:
diff changeset
248 #define CC_INTERP_ONLY(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
249 #define NOT_CC_INTERP(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
250 #endif // CC_INTERP
a61af66fc99e Initial load
duke
parents:
diff changeset
251
a61af66fc99e Initial load
duke
parents:
diff changeset
252 #ifdef ASSERT
a61af66fc99e Initial load
duke
parents:
diff changeset
253 #define DEBUG_ONLY(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
254 #define NOT_DEBUG(code)
809
6e2afda171db 6849716: BitMap - performance regression introduced with G1
jcoomes
parents: 453
diff changeset
255 #define NOT_DEBUG_RETURN /*next token must be ;*/
0
a61af66fc99e Initial load
duke
parents:
diff changeset
256 // Historical.
a61af66fc99e Initial load
duke
parents:
diff changeset
257 #define debug_only(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
258 #else // ASSERT
a61af66fc99e Initial load
duke
parents:
diff changeset
259 #define DEBUG_ONLY(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
260 #define NOT_DEBUG(code) code
809
6e2afda171db 6849716: BitMap - performance regression introduced with G1
jcoomes
parents: 453
diff changeset
261 #define NOT_DEBUG_RETURN {}
0
a61af66fc99e Initial load
duke
parents:
diff changeset
262 #define debug_only(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
263 #endif // ASSERT
a61af66fc99e Initial load
duke
parents:
diff changeset
264
a61af66fc99e Initial load
duke
parents:
diff changeset
265 #ifdef _LP64
a61af66fc99e Initial load
duke
parents:
diff changeset
266 #define LP64_ONLY(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
267 #define NOT_LP64(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
268 #else // !_LP64
a61af66fc99e Initial load
duke
parents:
diff changeset
269 #define LP64_ONLY(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
270 #define NOT_LP64(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
271 #endif // _LP64
a61af66fc99e Initial load
duke
parents:
diff changeset
272
a61af66fc99e Initial load
duke
parents:
diff changeset
273 #ifdef LINUX
a61af66fc99e Initial load
duke
parents:
diff changeset
274 #define LINUX_ONLY(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
275 #define NOT_LINUX(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
276 #else
a61af66fc99e Initial load
duke
parents:
diff changeset
277 #define LINUX_ONLY(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
278 #define NOT_LINUX(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
279 #endif
a61af66fc99e Initial load
duke
parents:
diff changeset
280
a61af66fc99e Initial load
duke
parents:
diff changeset
281 #ifdef SOLARIS
a61af66fc99e Initial load
duke
parents:
diff changeset
282 #define SOLARIS_ONLY(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
283 #define NOT_SOLARIS(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
284 #else
a61af66fc99e Initial load
duke
parents:
diff changeset
285 #define SOLARIS_ONLY(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
286 #define NOT_SOLARIS(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
287 #endif
a61af66fc99e Initial load
duke
parents:
diff changeset
288
a61af66fc99e Initial load
duke
parents:
diff changeset
289 #ifdef _WINDOWS
a61af66fc99e Initial load
duke
parents:
diff changeset
290 #define WINDOWS_ONLY(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
291 #define NOT_WINDOWS(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
292 #else
a61af66fc99e Initial load
duke
parents:
diff changeset
293 #define WINDOWS_ONLY(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
294 #define NOT_WINDOWS(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
295 #endif
a61af66fc99e Initial load
duke
parents:
diff changeset
296
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2321
diff changeset
297 #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2321
diff changeset
298 #define BSD_ONLY(code) code
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2321
diff changeset
299 #define NOT_BSD(code)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2321
diff changeset
300 #else
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2321
diff changeset
301 #define BSD_ONLY(code)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2321
diff changeset
302 #define NOT_BSD(code) code
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2321
diff changeset
303 #endif
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2321
diff changeset
304
2321
1b4e6a5d98e0 7012914: JSR 292 MethodHandlesTest C1: frame::verify_return_pc(return_address) failed: must be a return pc
twisti
parents: 2195
diff changeset
305 #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
306 #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
307 #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
308 #else
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 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
310 #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
311 #endif
1b4e6a5d98e0 7012914: JSR 292 MethodHandlesTest C1: frame::verify_return_pc(return_address) failed: must be a return pc
twisti
parents: 2195
diff changeset
312
6926
a3e2f723f2a5 8000780: make Zero build and run with JDK8
twisti
parents: 6854
diff changeset
313 #if defined(ZERO)
a3e2f723f2a5 8000780: make Zero build and run with JDK8
twisti
parents: 6854
diff changeset
314 #define ZERO_ONLY(code) code
a3e2f723f2a5 8000780: make Zero build and run with JDK8
twisti
parents: 6854
diff changeset
315 #define NOT_ZERO(code)
a3e2f723f2a5 8000780: make Zero build and run with JDK8
twisti
parents: 6854
diff changeset
316 #else
a3e2f723f2a5 8000780: make Zero build and run with JDK8
twisti
parents: 6854
diff changeset
317 #define ZERO_ONLY(code)
a3e2f723f2a5 8000780: make Zero build and run with JDK8
twisti
parents: 6854
diff changeset
318 #define NOT_ZERO(code) code
a3e2f723f2a5 8000780: make Zero build and run with JDK8
twisti
parents: 6854
diff changeset
319 #endif
a3e2f723f2a5 8000780: make Zero build and run with JDK8
twisti
parents: 6854
diff changeset
320
a3e2f723f2a5 8000780: make Zero build and run with JDK8
twisti
parents: 6854
diff changeset
321 #if defined(SHARK)
a3e2f723f2a5 8000780: make Zero build and run with JDK8
twisti
parents: 6854
diff changeset
322 #define SHARK_ONLY(code) code
a3e2f723f2a5 8000780: make Zero build and run with JDK8
twisti
parents: 6854
diff changeset
323 #define NOT_SHARK(code)
a3e2f723f2a5 8000780: make Zero build and run with JDK8
twisti
parents: 6854
diff changeset
324 #else
a3e2f723f2a5 8000780: make Zero build and run with JDK8
twisti
parents: 6854
diff changeset
325 #define SHARK_ONLY(code)
a3e2f723f2a5 8000780: make Zero build and run with JDK8
twisti
parents: 6854
diff changeset
326 #define NOT_SHARK(code) code
a3e2f723f2a5 8000780: make Zero build and run with JDK8
twisti
parents: 6854
diff changeset
327 #endif
a3e2f723f2a5 8000780: make Zero build and run with JDK8
twisti
parents: 6854
diff changeset
328
304
dc7f315e41f7 5108146: Merge i486 and amd64 cpu directories
never
parents: 0
diff changeset
329 #if defined(IA32) || defined(AMD64)
dc7f315e41f7 5108146: Merge i486 and amd64 cpu directories
never
parents: 0
diff changeset
330 #define X86
dc7f315e41f7 5108146: Merge i486 and amd64 cpu directories
never
parents: 0
diff changeset
331 #define X86_ONLY(code) code
1692
d2ede61b7a12 6976186: integrate Shark HotSpot changes
twisti
parents: 1681
diff changeset
332 #define NOT_X86(code)
304
dc7f315e41f7 5108146: Merge i486 and amd64 cpu directories
never
parents: 0
diff changeset
333 #else
dc7f315e41f7 5108146: Merge i486 and amd64 cpu directories
never
parents: 0
diff changeset
334 #undef X86
dc7f315e41f7 5108146: Merge i486 and amd64 cpu directories
never
parents: 0
diff changeset
335 #define X86_ONLY(code)
1692
d2ede61b7a12 6976186: integrate Shark HotSpot changes
twisti
parents: 1681
diff changeset
336 #define NOT_X86(code) code
304
dc7f315e41f7 5108146: Merge i486 and amd64 cpu directories
never
parents: 0
diff changeset
337 #endif
dc7f315e41f7 5108146: Merge i486 and amd64 cpu directories
never
parents: 0
diff changeset
338
0
a61af66fc99e Initial load
duke
parents:
diff changeset
339 #ifdef IA32
a61af66fc99e Initial load
duke
parents:
diff changeset
340 #define IA32_ONLY(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
341 #define NOT_IA32(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
342 #else
a61af66fc99e Initial load
duke
parents:
diff changeset
343 #define IA32_ONLY(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
344 #define NOT_IA32(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
345 #endif
a61af66fc99e Initial load
duke
parents:
diff changeset
346
a61af66fc99e Initial load
duke
parents:
diff changeset
347 #ifdef IA64
a61af66fc99e Initial load
duke
parents:
diff changeset
348 #define IA64_ONLY(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
349 #define NOT_IA64(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
350 #else
a61af66fc99e Initial load
duke
parents:
diff changeset
351 #define IA64_ONLY(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
352 #define NOT_IA64(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
353 #endif
a61af66fc99e Initial load
duke
parents:
diff changeset
354
a61af66fc99e Initial load
duke
parents:
diff changeset
355 #ifdef AMD64
a61af66fc99e Initial load
duke
parents:
diff changeset
356 #define AMD64_ONLY(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
357 #define NOT_AMD64(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
358 #else
a61af66fc99e Initial load
duke
parents:
diff changeset
359 #define AMD64_ONLY(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
360 #define NOT_AMD64(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
361 #endif
a61af66fc99e Initial load
duke
parents:
diff changeset
362
a61af66fc99e Initial load
duke
parents:
diff changeset
363 #ifdef SPARC
a61af66fc99e Initial load
duke
parents:
diff changeset
364 #define SPARC_ONLY(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
365 #define NOT_SPARC(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
366 #else
a61af66fc99e Initial load
duke
parents:
diff changeset
367 #define SPARC_ONLY(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
368 #define NOT_SPARC(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
369 #endif
a61af66fc99e Initial load
duke
parents:
diff changeset
370
1681
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
371 #ifdef PPC
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
372 #define PPC_ONLY(code) code
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
373 #define NOT_PPC(code)
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
374 #else
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
375 #define PPC_ONLY(code)
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
376 #define NOT_PPC(code) code
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
377 #endif
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
378
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
379 #ifdef E500V2
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
380 #define E500V2_ONLY(code) code
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
381 #define NOT_E500V2(code)
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
382 #else
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
383 #define E500V2_ONLY(code)
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
384 #define NOT_E500V2(code) code
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
385 #endif
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
386
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
387
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
388 #ifdef ARM
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
389 #define ARM_ONLY(code) code
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
390 #define NOT_ARM(code)
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
391 #else
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
392 #define ARM_ONLY(code)
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
393 #define NOT_ARM(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
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
396 #ifdef JAVASE_EMBEDDED
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
397 #define EMBEDDED_ONLY(code) code
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
398 #define NOT_EMBEDDED(code)
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
399 #else
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
400 #define EMBEDDED_ONLY(code)
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
401 #define NOT_EMBEDDED(code) code
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
402 #endif
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
403
0
a61af66fc99e Initial load
duke
parents:
diff changeset
404 #define define_pd_global(type, name, value) const type pd_##name = value;
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1796
diff changeset
405
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1796
diff changeset
406 #endif // SHARE_VM_UTILITIES_MACROS_HPP