< prev index next >

src/hotspot/share/runtime/objectMonitor.cpp

Print this page
rev 51780 : imported patch syncknobs-00-base
rev 51781 : imported patch syncknobs-01-Knob_ReportSettings
rev 51782 : imported patch syncknobs-02-Knob_SpinBackOff
rev 51783 : imported patch syncknobs-03-BackOffMask
rev 51784 : imported patch syncknobs-04-Knob_ExitRelease
rev 51785 : imported patch syncknobs-05-Knob_InlineNotify
rev 51786 : imported patch syncknobs-06-Knob_Verbose
rev 51787 : imported patch syncknobs-07-Knob_VerifyInUse
rev 51788 : imported patch syncknobs-08-Knob_VerifyMatch
rev 51789 : imported patch syncknobs-09-Knob_SpinBase
rev 51790 : imported patch syncknobs-10-Knob_CASPenalty
rev 51791 : imported patch syncknobs-11-Knob_OXPenalty
rev 51792 : imported patch syncknobs-12-Knob_SpinSetSucc
rev 51793 : imported patch syncknobs-13-Knob_SpinEarly
rev 51794 : imported patch syncknobs-14-Knob_SuccEnabled
rev 51795 : imported patch syncknobs-15-Knob_SuccRestrict
rev 51796 : imported patch syncknobs-16-Knob_MaxSpinners
rev 51797 : imported patch syncknobs-17-Knob_SpinAfterFutile
rev 51798 : imported patch syncknobs-18-Knob_OState
rev 51799 : imported patch syncknobs-19-Knob_UsePause

*** 106,116 **** static int Knob_Bonus = 100; // spin success bonus static int Knob_BonusB = 100; // spin success bonus static int Knob_Penalty = 200; // spin failure penalty static int Knob_Poverty = 1000; static int Knob_FixedSpin = 0; - static int Knob_UsePause = 1; static int Knob_ExitPolicy = 0; static int Knob_PreSpin = 10; // 20-100 likely better static int Knob_ResetEvent = 0; static int Knob_FastHSSEC = 0; --- 106,115 ----
*** 1861,1875 **** // We periodically check to see if there's a safepoint pending. if ((ctr & 0xFF) == 0) { if (SafepointMechanism::poll(Self)) { goto Abort; // abrupt spin egress } ! if (Knob_UsePause & 1) SpinPause(); } - if (Knob_UsePause & 2) SpinPause(); - // Probe _owner with TATAS // If this thread observes the monitor transition or flicker // from locked to unlocked to locked, then the odds that this // thread will acquire the lock in this spin attempt go down // considerably. The same argument applies if the CAS fails --- 1860,1872 ---- // We periodically check to see if there's a safepoint pending. if ((ctr & 0xFF) == 0) { if (SafepointMechanism::poll(Self)) { goto Abort; // abrupt spin egress } ! SpinPause(); } // Probe _owner with TATAS // If this thread observes the monitor transition or flicker // from locked to unlocked to locked, then the odds that this // thread will acquire the lock in this spin attempt go down // considerably. The same argument applies if the CAS fails
< prev index next >