< prev index next >

src/hotspot/share/utilities/globalDefinitions.hpp

Print this page
rev 55962 : 8229422: Taskqueue: Outdated selection of weak memory model platforms
Reviewed-by:


 464 
 465 // Maximal size of compressed class space. Above this limit compression is not possible.
 466 // Also upper bound for placement of zero based class space. (Class space is further limited
 467 // to be < 3G, see arguments.cpp.)
 468 const  uint64_t KlassEncodingMetaspaceMax = (uint64_t(max_juint) + 1) << LogKlassAlignmentInBytes;
 469 
 470 // Machine dependent stuff
 471 
 472 // The maximum size of the code cache.  Can be overridden by targets.
 473 #define CODE_CACHE_SIZE_LIMIT (2*G)
 474 // Allow targets to reduce the default size of the code cache.
 475 #define CODE_CACHE_DEFAULT_LIMIT CODE_CACHE_SIZE_LIMIT
 476 
 477 #include CPU_HEADER(globalDefinitions)
 478 
 479 // To assure the IRIW property on processors that are not multiple copy
 480 // atomic, sync instructions must be issued between volatile reads to
 481 // assure their ordering, instead of after volatile stores.
 482 // (See "A Tutorial Introduction to the ARM and POWER Relaxed Memory Models"
 483 // by Luc Maranget, Susmit Sarkar and Peter Sewell, INRIA/Cambridge)
 484 #ifdef CPU_NOT_MULTIPLE_COPY_ATOMIC
 485 const bool support_IRIW_for_not_multiple_copy_atomic_cpu = true;
 486 #else
 487 const bool support_IRIW_for_not_multiple_copy_atomic_cpu = false;




 488 #endif
 489 
 490 // The expected size in bytes of a cache line, used to pad data structures.
 491 #ifndef DEFAULT_CACHE_LINE_SIZE
 492   #define DEFAULT_CACHE_LINE_SIZE 64
 493 #endif
 494 
 495 
 496 //----------------------------------------------------------------------------------------------------
 497 // Utility macros for compilers
 498 // used to silence compiler warnings
 499 
 500 #define Unused_Variable(var) var
 501 
 502 
 503 //----------------------------------------------------------------------------------------------------
 504 // Miscellaneous
 505 
 506 // 6302670 Eliminate Hotspot __fabsf dependency
 507 // All fabs() callers should call this function instead, which will implicitly




 464 
 465 // Maximal size of compressed class space. Above this limit compression is not possible.
 466 // Also upper bound for placement of zero based class space. (Class space is further limited
 467 // to be < 3G, see arguments.cpp.)
 468 const  uint64_t KlassEncodingMetaspaceMax = (uint64_t(max_juint) + 1) << LogKlassAlignmentInBytes;
 469 
 470 // Machine dependent stuff
 471 
 472 // The maximum size of the code cache.  Can be overridden by targets.
 473 #define CODE_CACHE_SIZE_LIMIT (2*G)
 474 // Allow targets to reduce the default size of the code cache.
 475 #define CODE_CACHE_DEFAULT_LIMIT CODE_CACHE_SIZE_LIMIT
 476 
 477 #include CPU_HEADER(globalDefinitions)
 478 
 479 // To assure the IRIW property on processors that are not multiple copy
 480 // atomic, sync instructions must be issued between volatile reads to
 481 // assure their ordering, instead of after volatile stores.
 482 // (See "A Tutorial Introduction to the ARM and POWER Relaxed Memory Models"
 483 // by Luc Maranget, Susmit Sarkar and Peter Sewell, INRIA/Cambridge)
 484 #ifdef CPU_MULTI_COPY_ATOMIC
 485 // Not needed.

 486 const bool support_IRIW_for_not_multiple_copy_atomic_cpu = false;
 487 #else
 488 // From all non-multi-copy-atomic architectures, only PPC64 supports IRIW at the moment.
 489 // Final decision is subject to JEP 188: Java Memory Model Update.
 490 const bool support_IRIW_for_not_multiple_copy_atomic_cpu = PPC64_ONLY(true) NOT_PPC64(false);
 491 #endif
 492 
 493 // The expected size in bytes of a cache line, used to pad data structures.
 494 #ifndef DEFAULT_CACHE_LINE_SIZE
 495   #define DEFAULT_CACHE_LINE_SIZE 64
 496 #endif
 497 
 498 
 499 //----------------------------------------------------------------------------------------------------
 500 // Utility macros for compilers
 501 // used to silence compiler warnings
 502 
 503 #define Unused_Variable(var) var
 504 
 505 
 506 //----------------------------------------------------------------------------------------------------
 507 // Miscellaneous
 508 
 509 // 6302670 Eliminate Hotspot __fabsf dependency
 510 // All fabs() callers should call this function instead, which will implicitly


< prev index next >