< prev index next >

src/share/vm/utilities/globalDefinitions.hpp

Print this page




 402 // Klass encoding metaspace max size
 403 const uint64_t KlassEncodingMetaspaceMax = (uint64_t(max_juint) + 1) << LogKlassAlignmentInBytes;
 404 
 405 // Machine dependent stuff
 406 
 407 #if defined(X86) && defined(COMPILER2) && !defined(JAVASE_EMBEDDED)
 408 // Include Restricted Transactional Memory lock eliding optimization
 409 #define INCLUDE_RTM_OPT 1
 410 #define RTM_OPT_ONLY(code) code
 411 #else
 412 #define INCLUDE_RTM_OPT 0
 413 #define RTM_OPT_ONLY(code)
 414 #endif
 415 // States of Restricted Transactional Memory usage.
 416 enum RTMState {
 417   NoRTM      = 0x2, // Don't use RTM
 418   UseRTM     = 0x1, // Use RTM
 419   ProfileRTM = 0x0  // Use RTM with abort ratio calculation
 420 };
 421 





 422 #ifdef TARGET_ARCH_x86
 423 # include "globalDefinitions_x86.hpp"
 424 #endif



 425 #ifdef TARGET_ARCH_sparc
 426 # include "globalDefinitions_sparc.hpp"
 427 #endif
 428 #ifdef TARGET_ARCH_zero
 429 # include "globalDefinitions_zero.hpp"
 430 #endif
 431 #ifdef TARGET_ARCH_arm
 432 # include "globalDefinitions_arm.hpp"
 433 #endif
 434 #ifdef TARGET_ARCH_ppc
 435 # include "globalDefinitions_ppc.hpp"
 436 #endif
 437 
 438 /*
 439  * If a platform does not support native stack walking
 440  * the platform specific globalDefinitions (above)
 441  * can set PLATFORM_NATIVE_STACK_WALKING_SUPPORTED to 0
 442  */
 443 #ifndef PLATFORM_NATIVE_STACK_WALKING_SUPPORTED
 444 #define PLATFORM_NATIVE_STACK_WALKING_SUPPORTED 1


1389 // integers.  These are derived from the definitions in inttypes.h.  If the platform
1390 // doesn't provide appropriate definitions, they should be provided in
1391 // the compiler-specific definitions file (e.g., globalDefinitions_gcc.hpp)
1392 
1393 #define BOOL_TO_STR(_b_) ((_b_) ? "true" : "false")
1394 
1395 // Format 32-bit quantities.
1396 #define INT32_FORMAT           "%" PRId32
1397 #define UINT32_FORMAT          "%" PRIu32
1398 #define INT32_FORMAT_W(width)  "%" #width PRId32
1399 #define UINT32_FORMAT_W(width) "%" #width PRIu32
1400 
1401 #define PTR32_FORMAT           "0x%08" PRIx32
1402 
1403 // Format 64-bit quantities.
1404 #define INT64_FORMAT           "%" PRId64
1405 #define UINT64_FORMAT          "%" PRIu64
1406 #define UINT64_FORMAT_X        "%" PRIx64
1407 #define INT64_FORMAT_W(width)  "%" #width PRId64
1408 #define UINT64_FORMAT_W(width) "%" #width PRIu64

1409 
1410 #define PTR64_FORMAT           "0x%016" PRIx64
1411 
1412 // Format jlong, if necessary
1413 #ifndef JLONG_FORMAT
1414 #define JLONG_FORMAT           INT64_FORMAT
1415 #endif
1416 #ifndef JULONG_FORMAT
1417 #define JULONG_FORMAT          UINT64_FORMAT
1418 #endif
1419 
1420 // Format pointers which change size between 32- and 64-bit.
1421 #ifdef  _LP64
1422 #define INTPTR_FORMAT "0x%016" PRIxPTR
1423 #define PTR_FORMAT    "0x%016" PRIxPTR
1424 #else   // !_LP64
1425 #define INTPTR_FORMAT "0x%08"  PRIxPTR
1426 #define PTR_FORMAT    "0x%08"  PRIxPTR
1427 #endif  // _LP64
1428 




 402 // Klass encoding metaspace max size
 403 const uint64_t KlassEncodingMetaspaceMax = (uint64_t(max_juint) + 1) << LogKlassAlignmentInBytes;
 404 
 405 // Machine dependent stuff
 406 
 407 #if defined(X86) && defined(COMPILER2) && !defined(JAVASE_EMBEDDED)
 408 // Include Restricted Transactional Memory lock eliding optimization
 409 #define INCLUDE_RTM_OPT 1
 410 #define RTM_OPT_ONLY(code) code
 411 #else
 412 #define INCLUDE_RTM_OPT 0
 413 #define RTM_OPT_ONLY(code)
 414 #endif
 415 // States of Restricted Transactional Memory usage.
 416 enum RTMState {
 417   NoRTM      = 0x2, // Don't use RTM
 418   UseRTM     = 0x1, // Use RTM
 419   ProfileRTM = 0x0  // Use RTM with abort ratio calculation
 420 };
 421 
 422 // The maximum size of the code cache.  Can be overridden by targets.
 423 #define CODE_CACHE_SIZE_LIMIT (2*G)
 424 // Allow targets to reduce the default size of the code cache.
 425 #define CODE_CACHE_DEFAULT_LIMIT CODE_CACHE_SIZE_LIMIT
 426 
 427 #ifdef TARGET_ARCH_x86
 428 # include "globalDefinitions_x86.hpp"
 429 #endif
 430 #ifdef TARGET_ARCH_aarch64
 431 # include "globalDefinitions_aarch64.hpp"
 432 #endif
 433 #ifdef TARGET_ARCH_sparc
 434 # include "globalDefinitions_sparc.hpp"
 435 #endif
 436 #ifdef TARGET_ARCH_zero
 437 # include "globalDefinitions_zero.hpp"
 438 #endif
 439 #ifdef TARGET_ARCH_arm
 440 # include "globalDefinitions_arm.hpp"
 441 #endif
 442 #ifdef TARGET_ARCH_ppc
 443 # include "globalDefinitions_ppc.hpp"
 444 #endif
 445 
 446 /*
 447  * If a platform does not support native stack walking
 448  * the platform specific globalDefinitions (above)
 449  * can set PLATFORM_NATIVE_STACK_WALKING_SUPPORTED to 0
 450  */
 451 #ifndef PLATFORM_NATIVE_STACK_WALKING_SUPPORTED
 452 #define PLATFORM_NATIVE_STACK_WALKING_SUPPORTED 1


1397 // integers.  These are derived from the definitions in inttypes.h.  If the platform
1398 // doesn't provide appropriate definitions, they should be provided in
1399 // the compiler-specific definitions file (e.g., globalDefinitions_gcc.hpp)
1400 
1401 #define BOOL_TO_STR(_b_) ((_b_) ? "true" : "false")
1402 
1403 // Format 32-bit quantities.
1404 #define INT32_FORMAT           "%" PRId32
1405 #define UINT32_FORMAT          "%" PRIu32
1406 #define INT32_FORMAT_W(width)  "%" #width PRId32
1407 #define UINT32_FORMAT_W(width) "%" #width PRIu32
1408 
1409 #define PTR32_FORMAT           "0x%08" PRIx32
1410 
1411 // Format 64-bit quantities.
1412 #define INT64_FORMAT           "%" PRId64
1413 #define UINT64_FORMAT          "%" PRIu64
1414 #define UINT64_FORMAT_X        "%" PRIx64
1415 #define INT64_FORMAT_W(width)  "%" #width PRId64
1416 #define UINT64_FORMAT_W(width) "%" #width PRIu64
1417 #define UINT64_FORMAT_X_W(width) "%" #width PRIx64
1418 
1419 #define PTR64_FORMAT           "0x%016" PRIx64
1420 
1421 // Format jlong, if necessary
1422 #ifndef JLONG_FORMAT
1423 #define JLONG_FORMAT           INT64_FORMAT
1424 #endif
1425 #ifndef JULONG_FORMAT
1426 #define JULONG_FORMAT          UINT64_FORMAT
1427 #endif
1428 
1429 // Format pointers which change size between 32- and 64-bit.
1430 #ifdef  _LP64
1431 #define INTPTR_FORMAT "0x%016" PRIxPTR
1432 #define PTR_FORMAT    "0x%016" PRIxPTR
1433 #else   // !_LP64
1434 #define INTPTR_FORMAT "0x%08"  PRIxPTR
1435 #define PTR_FORMAT    "0x%08"  PRIxPTR
1436 #endif  // _LP64
1437 


< prev index next >