< prev index next >

src/share/vm/utilities/macros.hpp

Print this page




 159 #define NOT_NMT_RETURN        {}
 160 #define NOT_NMT_RETURN_(code) { return code; }
 161 #endif // INCLUDE_NMT
 162 
 163 #ifndef INCLUDE_JFR
 164 #define INCLUDE_JFR 1
 165 #endif
 166 
 167 #if INCLUDE_JFR
 168 #define JFR_ONLY(code) code
 169 #else
 170 #define JFR_ONLY(code)
 171 #endif
 172 
 173 // COMPILER1 variant
 174 #ifdef COMPILER1
 175 #ifdef COMPILER2
 176   #define TIERED
 177 #endif
 178 #define COMPILER1_PRESENT(code) code

 179 #else // COMPILER1
 180 #define COMPILER1_PRESENT(code)

 181 #endif // COMPILER1
 182 
 183 // COMPILER2 variant
 184 #ifdef COMPILER2
 185 #define COMPILER2_PRESENT(code) code
 186 #define NOT_COMPILER2(code)
 187 #else // COMPILER2
 188 #define COMPILER2_PRESENT(code)
 189 #define NOT_COMPILER2(code) code
 190 #endif // COMPILER2
 191 
 192 #ifdef TIERED
 193 #define TIERED_ONLY(code) code
 194 #define NOT_TIERED(code)
 195 #else
 196 #define TIERED_ONLY(code)
 197 #define NOT_TIERED(code) code
 198 #endif // TIERED
 199 
 200 


 335 #endif
 336 
 337 // This is a REALLY BIG HACK, but on AIX <sys/systemcfg.h> unconditionally defines IA64.
 338 // At least on AIX 7.1 this is a real problem because 'systemcfg.h' is indirectly included
 339 // by 'pthread.h' and other common system headers.
 340 
 341 #if defined(IA64) && !defined(AIX)
 342 #define IA64_ONLY(code) code
 343 #define NOT_IA64(code)
 344 #else
 345 #define IA64_ONLY(code)
 346 #define NOT_IA64(code) code
 347 #endif
 348 
 349 #ifdef AMD64
 350 #define AMD64_ONLY(code) code
 351 #define NOT_AMD64(code)
 352 #else
 353 #define AMD64_ONLY(code)
 354 #define NOT_AMD64(code) code








 355 #endif
 356 
 357 #ifdef SPARC
 358 #define SPARC_ONLY(code) code
 359 #define NOT_SPARC(code)
 360 #else
 361 #define SPARC_ONLY(code)
 362 #define NOT_SPARC(code) code
 363 #endif
 364 
 365 #if defined(PPC32) || defined(PPC64)
 366 #ifndef PPC
 367 #define PPC
 368 #endif
 369 #define PPC_ONLY(code) code
 370 #define NOT_PPC(code)
 371 #else
 372 #undef PPC
 373 #define PPC_ONLY(code)
 374 #define NOT_PPC(code) code




 159 #define NOT_NMT_RETURN        {}
 160 #define NOT_NMT_RETURN_(code) { return code; }
 161 #endif // INCLUDE_NMT
 162 
 163 #ifndef INCLUDE_JFR
 164 #define INCLUDE_JFR 1
 165 #endif
 166 
 167 #if INCLUDE_JFR
 168 #define JFR_ONLY(code) code
 169 #else
 170 #define JFR_ONLY(code)
 171 #endif
 172 
 173 // COMPILER1 variant
 174 #ifdef COMPILER1
 175 #ifdef COMPILER2
 176   #define TIERED
 177 #endif
 178 #define COMPILER1_PRESENT(code) code
 179 #define NOT_COMPILER1(code)
 180 #else // COMPILER1
 181 #define COMPILER1_PRESENT(code)
 182 #define NOT_COMPILER1(code) code
 183 #endif // COMPILER1
 184 
 185 // COMPILER2 variant
 186 #ifdef COMPILER2
 187 #define COMPILER2_PRESENT(code) code
 188 #define NOT_COMPILER2(code)
 189 #else // COMPILER2
 190 #define COMPILER2_PRESENT(code)
 191 #define NOT_COMPILER2(code) code
 192 #endif // COMPILER2
 193 
 194 #ifdef TIERED
 195 #define TIERED_ONLY(code) code
 196 #define NOT_TIERED(code)
 197 #else
 198 #define TIERED_ONLY(code)
 199 #define NOT_TIERED(code) code
 200 #endif // TIERED
 201 
 202 


 337 #endif
 338 
 339 // This is a REALLY BIG HACK, but on AIX <sys/systemcfg.h> unconditionally defines IA64.
 340 // At least on AIX 7.1 this is a real problem because 'systemcfg.h' is indirectly included
 341 // by 'pthread.h' and other common system headers.
 342 
 343 #if defined(IA64) && !defined(AIX)
 344 #define IA64_ONLY(code) code
 345 #define NOT_IA64(code)
 346 #else
 347 #define IA64_ONLY(code)
 348 #define NOT_IA64(code) code
 349 #endif
 350 
 351 #ifdef AMD64
 352 #define AMD64_ONLY(code) code
 353 #define NOT_AMD64(code)
 354 #else
 355 #define AMD64_ONLY(code)
 356 #define NOT_AMD64(code) code
 357 #endif
 358 
 359 #ifdef AARCH64
 360 #define AARCH64_ONLY(code) code
 361 #define NOT_AARCH64(code)
 362 #else
 363 #define AARCH64_ONLY(code)
 364 #define NOT_AARCH64(code) code
 365 #endif
 366 
 367 #ifdef SPARC
 368 #define SPARC_ONLY(code) code
 369 #define NOT_SPARC(code)
 370 #else
 371 #define SPARC_ONLY(code)
 372 #define NOT_SPARC(code) code
 373 #endif
 374 
 375 #if defined(PPC32) || defined(PPC64)
 376 #ifndef PPC
 377 #define PPC
 378 #endif
 379 #define PPC_ONLY(code) code
 380 #define NOT_PPC(code)
 381 #else
 382 #undef PPC
 383 #define PPC_ONLY(code)
 384 #define NOT_PPC(code) code


< prev index next >