< prev index next >

src/share/vm/utilities/macros.hpp

Print this page




 153 #endif // INCLUDE_NMT
 154 
 155 #if INCLUDE_NMT
 156 #define NOT_NMT_RETURN        /* next token must be ; */
 157 #define NOT_NMT_RETURN_(code) /* next token must be ; */
 158 #else
 159 #define NOT_NMT_RETURN        {}
 160 #define NOT_NMT_RETURN_(code) { return code; }
 161 #endif // INCLUDE_NMT
 162 
 163 #ifndef INCLUDE_TRACE
 164 #define INCLUDE_TRACE 1
 165 #endif // INCLUDE_TRACE
 166 
 167 // COMPILER1 variant
 168 #ifdef COMPILER1
 169 #ifdef COMPILER2
 170   #define TIERED
 171 #endif
 172 #define COMPILER1_PRESENT(code) code

 173 #else // COMPILER1
 174 #define COMPILER1_PRESENT(code)

 175 #endif // COMPILER1
 176 
 177 // COMPILER2 variant
 178 #ifdef COMPILER2
 179 #define COMPILER2_PRESENT(code) code
 180 #define NOT_COMPILER2(code)
 181 #else // COMPILER2
 182 #define COMPILER2_PRESENT(code)
 183 #define NOT_COMPILER2(code) code
 184 #endif // COMPILER2
 185 
 186 #ifdef TIERED
 187 #define TIERED_ONLY(code) code
 188 #define NOT_TIERED(code)
 189 #else
 190 #define TIERED_ONLY(code)
 191 #define NOT_TIERED(code) code
 192 #endif // TIERED
 193 
 194 


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








 349 #endif
 350 
 351 #ifdef SPARC
 352 #define SPARC_ONLY(code) code
 353 #define NOT_SPARC(code)
 354 #else
 355 #define SPARC_ONLY(code)
 356 #define NOT_SPARC(code) code
 357 #endif
 358 
 359 #if defined(PPC32) || defined(PPC64)
 360 #ifndef PPC
 361 #define PPC
 362 #endif
 363 #define PPC_ONLY(code) code
 364 #define NOT_PPC(code)
 365 #else
 366 #undef PPC
 367 #define PPC_ONLY(code)
 368 #define NOT_PPC(code) code




 153 #endif // INCLUDE_NMT
 154 
 155 #if INCLUDE_NMT
 156 #define NOT_NMT_RETURN        /* next token must be ; */
 157 #define NOT_NMT_RETURN_(code) /* next token must be ; */
 158 #else
 159 #define NOT_NMT_RETURN        {}
 160 #define NOT_NMT_RETURN_(code) { return code; }
 161 #endif // INCLUDE_NMT
 162 
 163 #ifndef INCLUDE_TRACE
 164 #define INCLUDE_TRACE 1
 165 #endif // INCLUDE_TRACE
 166 
 167 // COMPILER1 variant
 168 #ifdef COMPILER1
 169 #ifdef COMPILER2
 170   #define TIERED
 171 #endif
 172 #define COMPILER1_PRESENT(code) code
 173 #define NOT_COMPILER1(code)
 174 #else // COMPILER1
 175 #define COMPILER1_PRESENT(code)
 176 #define NOT_COMPILER1(code) code
 177 #endif // COMPILER1
 178 
 179 // COMPILER2 variant
 180 #ifdef COMPILER2
 181 #define COMPILER2_PRESENT(code) code
 182 #define NOT_COMPILER2(code)
 183 #else // COMPILER2
 184 #define COMPILER2_PRESENT(code)
 185 #define NOT_COMPILER2(code) code
 186 #endif // COMPILER2
 187 
 188 #ifdef TIERED
 189 #define TIERED_ONLY(code) code
 190 #define NOT_TIERED(code)
 191 #else
 192 #define TIERED_ONLY(code)
 193 #define NOT_TIERED(code) code
 194 #endif // TIERED
 195 
 196 


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


< prev index next >