src/share/vm/runtime/thread.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File 8031320_8u Cdiff src/share/vm/runtime/thread.cpp

src/share/vm/runtime/thread.cpp

Print this page
rev 5968 : 8031320: Use Intel RTM instructions for locks
Summary: Use RTM for inflated locks and stack locks.
Reviewed-by: iveresov, twisti, roland, dcubed

*** 105,114 **** --- 105,117 ---- #endif #ifdef COMPILER2 #include "opto/c2compiler.hpp" #include "opto/idealGraphPrinter.hpp" #endif + #if INCLUDE_RTM_OPT + #include "runtime/rtmLocking.hpp" + #endif #ifdef DTRACE_ENABLED // Only bother with this argument setup if dtrace is available
*** 3668,3677 **** --- 3671,3684 ---- StatSampler::engage(); if (CheckJNICalls) JniPeriodicChecker::engage(); BiasedLocking::init(); + #if INCLUDE_RTM_OPT + RTMLockingCounters::init(); + #endif + if (JDK_Version::current().post_vm_init_hook_enabled()) { call_postVMInitHook(THREAD); // The Java side of PostVMInitHook.run must deal with all // exceptions and provide means of diagnosis. if (HAS_PENDING_EXCEPTION) {
src/share/vm/runtime/thread.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File