annotate src/share/vm/utilities/macros.hpp @ 1994:6cd6d394f280

7001033: assert(gch->gc_cause() == GCCause::_scavenge_alot || !gch->incremental_collection_failed()) 7002546: regression on SpecJbb2005 on 7b118 comparing to 7b117 on small heaps Summary: Relaxed assertion checking related to incremental_collection_failed flag to allow for ExplicitGCInvokesConcurrent behaviour where we do not want a failing scavenge to bail to a stop-world collection. Parameterized incremental_collection_will_fail() so we can selectively use, or not use, as appropriate, the statistical prediction at specific use sites. This essentially reverts the scavenge bail-out logic to what it was prior to some recent changes that had inadvertently started using the statistical prediction which can be noisy in the presence of bursty loads. Added some associated verbose non-product debugging messages. Reviewed-by: johnc, tonyp
author ysr
date Tue, 07 Dec 2010 21:55:53 -0800
parents f95d63e2154a
children bf8517f4e4d0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 /*
1692
d2ede61b7a12 6976186: integrate Shark HotSpot changes
twisti
parents: 1681
diff changeset
2 * Copyright (c) 1997, 2010, 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
a61af66fc99e Initial load
duke
parents:
diff changeset
37 // KERNEL variant
a61af66fc99e Initial load
duke
parents:
diff changeset
38 #ifdef KERNEL
a61af66fc99e Initial load
duke
parents:
diff changeset
39 #define COMPILER1
a61af66fc99e Initial load
duke
parents:
diff changeset
40 #define SERIALGC
a61af66fc99e Initial load
duke
parents:
diff changeset
41
a61af66fc99e Initial load
duke
parents:
diff changeset
42 #define JVMTI_KERNEL
a61af66fc99e Initial load
duke
parents:
diff changeset
43 #define FPROF_KERNEL
a61af66fc99e Initial load
duke
parents:
diff changeset
44 #define VM_STRUCTS_KERNEL
a61af66fc99e Initial load
duke
parents:
diff changeset
45 #define JNICHECK_KERNEL
a61af66fc99e Initial load
duke
parents:
diff changeset
46 #define SERVICES_KERNEL
a61af66fc99e Initial load
duke
parents:
diff changeset
47
a61af66fc99e Initial load
duke
parents:
diff changeset
48 #define KERNEL_RETURN {}
a61af66fc99e Initial load
duke
parents:
diff changeset
49 #define KERNEL_RETURN_(code) { code }
a61af66fc99e Initial load
duke
parents:
diff changeset
50
a61af66fc99e Initial load
duke
parents:
diff changeset
51 #else // KERNEL
a61af66fc99e Initial load
duke
parents:
diff changeset
52
a61af66fc99e Initial load
duke
parents:
diff changeset
53 #define KERNEL_RETURN /* next token must be ; */
a61af66fc99e Initial load
duke
parents:
diff changeset
54 #define KERNEL_RETURN_(code) /* next token must be ; */
a61af66fc99e Initial load
duke
parents:
diff changeset
55
a61af66fc99e Initial load
duke
parents:
diff changeset
56 #endif // KERNEL
a61af66fc99e Initial load
duke
parents:
diff changeset
57
a61af66fc99e Initial load
duke
parents:
diff changeset
58 // COMPILER1 variant
a61af66fc99e Initial load
duke
parents:
diff changeset
59 #ifdef COMPILER1
a61af66fc99e Initial load
duke
parents:
diff changeset
60 #ifdef COMPILER2
a61af66fc99e Initial load
duke
parents:
diff changeset
61 #define TIERED
a61af66fc99e Initial load
duke
parents:
diff changeset
62 #endif
a61af66fc99e Initial load
duke
parents:
diff changeset
63 #define COMPILER1_PRESENT(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
64 #else // COMPILER1
a61af66fc99e Initial load
duke
parents:
diff changeset
65 #define COMPILER1_PRESENT(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
66 #endif // COMPILER1
a61af66fc99e Initial load
duke
parents:
diff changeset
67
a61af66fc99e Initial load
duke
parents:
diff changeset
68 // COMPILER2 variant
a61af66fc99e Initial load
duke
parents:
diff changeset
69 #ifdef COMPILER2
a61af66fc99e Initial load
duke
parents:
diff changeset
70 #define COMPILER2_PRESENT(code) code
453
c96030fff130 6684579: SoftReference processing can be made more efficient
ysr
parents: 337
diff changeset
71 #define NOT_COMPILER2(code)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
72 #else // COMPILER2
a61af66fc99e Initial load
duke
parents:
diff changeset
73 #define COMPILER2_PRESENT(code)
453
c96030fff130 6684579: SoftReference processing can be made more efficient
ysr
parents: 337
diff changeset
74 #define NOT_COMPILER2(code) code
0
a61af66fc99e Initial load
duke
parents:
diff changeset
75 #endif // COMPILER2
a61af66fc99e Initial load
duke
parents:
diff changeset
76
1783
d5d065957597 6953144: Tiered compilation
iveresov
parents: 1692
diff changeset
77 #ifdef TIERED
d5d065957597 6953144: Tiered compilation
iveresov
parents: 1692
diff changeset
78 #define TIERED_ONLY(code) code
d5d065957597 6953144: Tiered compilation
iveresov
parents: 1692
diff changeset
79 #define NOT_TIERED(code)
d5d065957597 6953144: Tiered compilation
iveresov
parents: 1692
diff changeset
80 #else
d5d065957597 6953144: Tiered compilation
iveresov
parents: 1692
diff changeset
81 #define TIERED_ONLY(code)
d5d065957597 6953144: Tiered compilation
iveresov
parents: 1692
diff changeset
82 #define NOT_TIERED(code) code
d5d065957597 6953144: Tiered compilation
iveresov
parents: 1692
diff changeset
83 #endif // TIERED
d5d065957597 6953144: Tiered compilation
iveresov
parents: 1692
diff changeset
84
0
a61af66fc99e Initial load
duke
parents:
diff changeset
85
a61af66fc99e Initial load
duke
parents:
diff changeset
86 // PRODUCT variant
a61af66fc99e Initial load
duke
parents:
diff changeset
87 #ifdef PRODUCT
a61af66fc99e Initial load
duke
parents:
diff changeset
88 #define PRODUCT_ONLY(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
89 #define NOT_PRODUCT(code)
1768
6ee479178066 6979444: add command line option to print command line flags descriptions
ikrylov
parents: 1692
diff changeset
90 #define NOT_PRODUCT_ARG(arg)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
91 #define PRODUCT_RETURN {}
a61af66fc99e Initial load
duke
parents:
diff changeset
92 #define PRODUCT_RETURN0 { return 0; }
a61af66fc99e Initial load
duke
parents:
diff changeset
93 #define PRODUCT_RETURN_(code) { code }
a61af66fc99e Initial load
duke
parents:
diff changeset
94 #else // PRODUCT
a61af66fc99e Initial load
duke
parents:
diff changeset
95 #define PRODUCT_ONLY(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
96 #define NOT_PRODUCT(code) code
1768
6ee479178066 6979444: add command line option to print command line flags descriptions
ikrylov
parents: 1692
diff changeset
97 #define NOT_PRODUCT_ARG(arg) arg,
0
a61af66fc99e Initial load
duke
parents:
diff changeset
98 #define PRODUCT_RETURN /*next token must be ;*/
a61af66fc99e Initial load
duke
parents:
diff changeset
99 #define PRODUCT_RETURN0 /*next token must be ;*/
a61af66fc99e Initial load
duke
parents:
diff changeset
100 #define PRODUCT_RETURN_(code) /*next token must be ;*/
a61af66fc99e Initial load
duke
parents:
diff changeset
101 #endif // PRODUCT
a61af66fc99e Initial load
duke
parents:
diff changeset
102
a61af66fc99e Initial load
duke
parents:
diff changeset
103 #ifdef CHECK_UNHANDLED_OOPS
a61af66fc99e Initial load
duke
parents:
diff changeset
104 #define CHECK_UNHANDLED_OOPS_ONLY(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
105 #define NOT_CHECK_UNHANDLED_OOPS(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
106 #else
a61af66fc99e Initial load
duke
parents:
diff changeset
107 #define CHECK_UNHANDLED_OOPS_ONLY(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
108 #define NOT_CHECK_UNHANDLED_OOPS(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
109 #endif // CHECK_UNHANDLED_OOPS
a61af66fc99e Initial load
duke
parents:
diff changeset
110
a61af66fc99e Initial load
duke
parents:
diff changeset
111 #ifdef CC_INTERP
a61af66fc99e Initial load
duke
parents:
diff changeset
112 #define CC_INTERP_ONLY(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
113 #define NOT_CC_INTERP(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
114 #else
a61af66fc99e Initial load
duke
parents:
diff changeset
115 #define CC_INTERP_ONLY(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
116 #define NOT_CC_INTERP(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
117 #endif // CC_INTERP
a61af66fc99e Initial load
duke
parents:
diff changeset
118
a61af66fc99e Initial load
duke
parents:
diff changeset
119 #ifdef ASSERT
a61af66fc99e Initial load
duke
parents:
diff changeset
120 #define DEBUG_ONLY(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
121 #define NOT_DEBUG(code)
809
6e2afda171db 6849716: BitMap - performance regression introduced with G1
jcoomes
parents: 453
diff changeset
122 #define NOT_DEBUG_RETURN /*next token must be ;*/
0
a61af66fc99e Initial load
duke
parents:
diff changeset
123 // Historical.
a61af66fc99e Initial load
duke
parents:
diff changeset
124 #define debug_only(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
125 #else // ASSERT
a61af66fc99e Initial load
duke
parents:
diff changeset
126 #define DEBUG_ONLY(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
127 #define NOT_DEBUG(code) code
809
6e2afda171db 6849716: BitMap - performance regression introduced with G1
jcoomes
parents: 453
diff changeset
128 #define NOT_DEBUG_RETURN {}
0
a61af66fc99e Initial load
duke
parents:
diff changeset
129 #define debug_only(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
130 #endif // ASSERT
a61af66fc99e Initial load
duke
parents:
diff changeset
131
a61af66fc99e Initial load
duke
parents:
diff changeset
132 #ifdef _LP64
a61af66fc99e Initial load
duke
parents:
diff changeset
133 #define LP64_ONLY(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
134 #define NOT_LP64(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
135 #else // !_LP64
a61af66fc99e Initial load
duke
parents:
diff changeset
136 #define LP64_ONLY(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
137 #define NOT_LP64(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
138 #endif // _LP64
a61af66fc99e Initial load
duke
parents:
diff changeset
139
a61af66fc99e Initial load
duke
parents:
diff changeset
140 #ifdef LINUX
a61af66fc99e Initial load
duke
parents:
diff changeset
141 #define LINUX_ONLY(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
142 #define NOT_LINUX(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
143 #else
a61af66fc99e Initial load
duke
parents:
diff changeset
144 #define LINUX_ONLY(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
145 #define NOT_LINUX(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
146 #endif
a61af66fc99e Initial load
duke
parents:
diff changeset
147
a61af66fc99e Initial load
duke
parents:
diff changeset
148 #ifdef SOLARIS
a61af66fc99e Initial load
duke
parents:
diff changeset
149 #define SOLARIS_ONLY(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
150 #define NOT_SOLARIS(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
151 #else
a61af66fc99e Initial load
duke
parents:
diff changeset
152 #define SOLARIS_ONLY(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
153 #define NOT_SOLARIS(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
154 #endif
a61af66fc99e Initial load
duke
parents:
diff changeset
155
a61af66fc99e Initial load
duke
parents:
diff changeset
156 #ifdef _WINDOWS
a61af66fc99e Initial load
duke
parents:
diff changeset
157 #define WINDOWS_ONLY(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
158 #define NOT_WINDOWS(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
159 #else
a61af66fc99e Initial load
duke
parents:
diff changeset
160 #define WINDOWS_ONLY(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
161 #define NOT_WINDOWS(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
162 #endif
a61af66fc99e Initial load
duke
parents:
diff changeset
163
304
dc7f315e41f7 5108146: Merge i486 and amd64 cpu directories
never
parents: 0
diff changeset
164 #if defined(IA32) || defined(AMD64)
dc7f315e41f7 5108146: Merge i486 and amd64 cpu directories
never
parents: 0
diff changeset
165 #define X86
dc7f315e41f7 5108146: Merge i486 and amd64 cpu directories
never
parents: 0
diff changeset
166 #define X86_ONLY(code) code
1692
d2ede61b7a12 6976186: integrate Shark HotSpot changes
twisti
parents: 1681
diff changeset
167 #define NOT_X86(code)
304
dc7f315e41f7 5108146: Merge i486 and amd64 cpu directories
never
parents: 0
diff changeset
168 #else
dc7f315e41f7 5108146: Merge i486 and amd64 cpu directories
never
parents: 0
diff changeset
169 #undef X86
dc7f315e41f7 5108146: Merge i486 and amd64 cpu directories
never
parents: 0
diff changeset
170 #define X86_ONLY(code)
1692
d2ede61b7a12 6976186: integrate Shark HotSpot changes
twisti
parents: 1681
diff changeset
171 #define NOT_X86(code) code
304
dc7f315e41f7 5108146: Merge i486 and amd64 cpu directories
never
parents: 0
diff changeset
172 #endif
dc7f315e41f7 5108146: Merge i486 and amd64 cpu directories
never
parents: 0
diff changeset
173
0
a61af66fc99e Initial load
duke
parents:
diff changeset
174 #ifdef IA32
a61af66fc99e Initial load
duke
parents:
diff changeset
175 #define IA32_ONLY(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
176 #define NOT_IA32(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
177 #else
a61af66fc99e Initial load
duke
parents:
diff changeset
178 #define IA32_ONLY(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
179 #define NOT_IA32(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
180 #endif
a61af66fc99e Initial load
duke
parents:
diff changeset
181
a61af66fc99e Initial load
duke
parents:
diff changeset
182 #ifdef IA64
a61af66fc99e Initial load
duke
parents:
diff changeset
183 #define IA64_ONLY(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
184 #define NOT_IA64(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
185 #else
a61af66fc99e Initial load
duke
parents:
diff changeset
186 #define IA64_ONLY(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
187 #define NOT_IA64(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
188 #endif
a61af66fc99e Initial load
duke
parents:
diff changeset
189
a61af66fc99e Initial load
duke
parents:
diff changeset
190 #ifdef AMD64
a61af66fc99e Initial load
duke
parents:
diff changeset
191 #define AMD64_ONLY(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
192 #define NOT_AMD64(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
193 #else
a61af66fc99e Initial load
duke
parents:
diff changeset
194 #define AMD64_ONLY(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
195 #define NOT_AMD64(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
196 #endif
a61af66fc99e Initial load
duke
parents:
diff changeset
197
a61af66fc99e Initial load
duke
parents:
diff changeset
198 #ifdef SPARC
a61af66fc99e Initial load
duke
parents:
diff changeset
199 #define SPARC_ONLY(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
200 #define NOT_SPARC(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
201 #else
a61af66fc99e Initial load
duke
parents:
diff changeset
202 #define SPARC_ONLY(code)
a61af66fc99e Initial load
duke
parents:
diff changeset
203 #define NOT_SPARC(code) code
a61af66fc99e Initial load
duke
parents:
diff changeset
204 #endif
a61af66fc99e Initial load
duke
parents:
diff changeset
205
1681
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
206 #ifdef PPC
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
207 #define PPC_ONLY(code) code
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
208 #define NOT_PPC(code)
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
209 #else
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
210 #define PPC_ONLY(code)
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
211 #define NOT_PPC(code) code
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
212 #endif
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
213
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
214 #ifdef E500V2
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
215 #define E500V2_ONLY(code) code
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
216 #define NOT_E500V2(code)
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
217 #else
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
218 #define E500V2_ONLY(code)
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
219 #define NOT_E500V2(code) code
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
220 #endif
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
221
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
222
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
223 #ifdef ARM
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
224 #define ARM_ONLY(code) code
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
225 #define NOT_ARM(code)
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
226 #else
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
227 #define ARM_ONLY(code)
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
228 #define NOT_ARM(code) code
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
229 #endif
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
230
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
231 #ifdef JAVASE_EMBEDDED
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
232 #define EMBEDDED_ONLY(code) code
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
233 #define NOT_EMBEDDED(code)
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
234 #else
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
235 #define EMBEDDED_ONLY(code)
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
236 #define NOT_EMBEDDED(code) code
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
237 #endif
126ea7725993 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 1552
diff changeset
238
0
a61af66fc99e Initial load
duke
parents:
diff changeset
239 #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
240
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1796
diff changeset
241 #endif // SHARE_VM_UTILITIES_MACROS_HPP