1.1 --- a/src/share/vm/utilities/globalDefinitions.hpp Tue Mar 25 12:54:21 2014 -0700 1.2 +++ b/src/share/vm/utilities/globalDefinitions.hpp Tue Mar 25 17:07:36 2014 -0700 1.3 @@ -373,6 +373,21 @@ 1.4 1.5 // Machine dependent stuff 1.6 1.7 +#if defined(X86) && defined(COMPILER2) && !defined(JAVASE_EMBEDDED) 1.8 +// Include Restricted Transactional Memory lock eliding optimization 1.9 +#define INCLUDE_RTM_OPT 1 1.10 +#define RTM_OPT_ONLY(code) code 1.11 +#else 1.12 +#define INCLUDE_RTM_OPT 0 1.13 +#define RTM_OPT_ONLY(code) 1.14 +#endif 1.15 +// States of Restricted Transactional Memory usage. 1.16 +enum RTMState { 1.17 + NoRTM = 0x2, // Don't use RTM 1.18 + UseRTM = 0x1, // Use RTM 1.19 + ProfileRTM = 0x0 // Use RTM with abort ratio calculation 1.20 +}; 1.21 + 1.22 #ifdef TARGET_ARCH_x86 1.23 # include "globalDefinitions_x86.hpp" 1.24 #endif