Mercurial > hg > truffle
comparison src/share/vm/runtime/thread.cpp @ 17780:606acabe7b5c
8031320: Use Intel RTM instructions for locks
Summary: Use RTM for inflated locks and stack locks.
Reviewed-by: iveresov, twisti, roland, dcubed
author | kvn |
---|---|
date | Thu, 20 Mar 2014 17:49:27 -0700 |
parents | 0e6af9b390af |
children | 62c54fcc0a35 |
comparison
equal
deleted
inserted
replaced
17778:a48e16541e6b | 17780:606acabe7b5c |
---|---|
105 #endif | 105 #endif |
106 #ifdef COMPILER2 | 106 #ifdef COMPILER2 |
107 #include "opto/c2compiler.hpp" | 107 #include "opto/c2compiler.hpp" |
108 #include "opto/idealGraphPrinter.hpp" | 108 #include "opto/idealGraphPrinter.hpp" |
109 #endif | 109 #endif |
110 #if INCLUDE_RTM_OPT | |
111 #include "runtime/rtmLocking.hpp" | |
112 #endif | |
110 | 113 |
111 #ifdef DTRACE_ENABLED | 114 #ifdef DTRACE_ENABLED |
112 | 115 |
113 // Only bother with this argument setup if dtrace is available | 116 // Only bother with this argument setup if dtrace is available |
114 | 117 |
3668 StatSampler::engage(); | 3671 StatSampler::engage(); |
3669 if (CheckJNICalls) JniPeriodicChecker::engage(); | 3672 if (CheckJNICalls) JniPeriodicChecker::engage(); |
3670 | 3673 |
3671 BiasedLocking::init(); | 3674 BiasedLocking::init(); |
3672 | 3675 |
3676 #if INCLUDE_RTM_OPT | |
3677 RTMLockingCounters::init(); | |
3678 #endif | |
3679 | |
3673 if (JDK_Version::current().post_vm_init_hook_enabled()) { | 3680 if (JDK_Version::current().post_vm_init_hook_enabled()) { |
3674 call_postVMInitHook(THREAD); | 3681 call_postVMInitHook(THREAD); |
3675 // The Java side of PostVMInitHook.run must deal with all | 3682 // The Java side of PostVMInitHook.run must deal with all |
3676 // exceptions and provide means of diagnosis. | 3683 // exceptions and provide means of diagnosis. |
3677 if (HAS_PENDING_EXCEPTION) { | 3684 if (HAS_PENDING_EXCEPTION) { |