402 403 // Machine dependent stuff 404 405 #if defined(X86) && defined(COMPILER2) && !defined(JAVASE_EMBEDDED) 406 // Include Restricted Transactional Memory lock eliding optimization 407 #define INCLUDE_RTM_OPT 1 408 #define RTM_OPT_ONLY(code) code 409 #else 410 #define INCLUDE_RTM_OPT 0 411 #define RTM_OPT_ONLY(code) 412 #endif 413 // States of Restricted Transactional Memory usage. 414 enum RTMState { 415 NoRTM = 0x2, // Don't use RTM 416 UseRTM = 0x1, // Use RTM 417 ProfileRTM = 0x0 // Use RTM with abort ratio calculation 418 }; 419 420 // The maximum size of the code cache. Can be overridden by targets. 421 #define CODE_CACHE_SIZE_LIMIT (2*G) 422 423 #ifdef TARGET_ARCH_x86 424 # include "globalDefinitions_x86.hpp" 425 #endif 426 #ifdef TARGET_ARCH_sparc 427 # include "globalDefinitions_sparc.hpp" 428 #endif 429 #ifdef TARGET_ARCH_zero 430 # include "globalDefinitions_zero.hpp" 431 #endif 432 #ifdef TARGET_ARCH_arm 433 # include "globalDefinitions_arm.hpp" 434 #endif 435 #ifdef TARGET_ARCH_ppc 436 # include "globalDefinitions_ppc.hpp" 437 #endif 438 #ifdef TARGET_ARCH_aarch64 439 # include "globalDefinitions_aarch64.hpp" 440 #endif 441 | 402 403 // Machine dependent stuff 404 405 #if defined(X86) && defined(COMPILER2) && !defined(JAVASE_EMBEDDED) 406 // Include Restricted Transactional Memory lock eliding optimization 407 #define INCLUDE_RTM_OPT 1 408 #define RTM_OPT_ONLY(code) code 409 #else 410 #define INCLUDE_RTM_OPT 0 411 #define RTM_OPT_ONLY(code) 412 #endif 413 // States of Restricted Transactional Memory usage. 414 enum RTMState { 415 NoRTM = 0x2, // Don't use RTM 416 UseRTM = 0x1, // Use RTM 417 ProfileRTM = 0x0 // Use RTM with abort ratio calculation 418 }; 419 420 // The maximum size of the code cache. Can be overridden by targets. 421 #define CODE_CACHE_SIZE_LIMIT (2*G) 422 // Allow targets to reduce the default size of the code cache. 423 #define CODE_CACHE_DEFAULT_LIMIT CODE_CACHE_SIZE_LIMIT 424 425 #ifdef TARGET_ARCH_x86 426 # include "globalDefinitions_x86.hpp" 427 #endif 428 #ifdef TARGET_ARCH_sparc 429 # include "globalDefinitions_sparc.hpp" 430 #endif 431 #ifdef TARGET_ARCH_zero 432 # include "globalDefinitions_zero.hpp" 433 #endif 434 #ifdef TARGET_ARCH_arm 435 # include "globalDefinitions_arm.hpp" 436 #endif 437 #ifdef TARGET_ARCH_ppc 438 # include "globalDefinitions_ppc.hpp" 439 #endif 440 #ifdef TARGET_ARCH_aarch64 441 # include "globalDefinitions_aarch64.hpp" 442 #endif 443 |