< prev index next >

src/hotspot/share/runtime/synchronizer.cpp

Print this page

        

*** 256,268 **** return false; // revert to slow-path } // ----------------------------------------------------------------------------- // Monitor Enter/Exit ! // The interpreter and compiler use some assembly copies of this code. Make sure ! // update those code if the following function is changed. The implementation ! // is extremely sensitive to race condition. Be careful. void ObjectSynchronizer::enter(Handle obj, BasicLock* lock, TRAPS) { if (UseBiasedLocking) { if (!SafepointSynchronize::is_at_safepoint()) { BiasedLocking::revoke(obj, THREAD); --- 256,268 ---- return false; // revert to slow-path } // ----------------------------------------------------------------------------- // Monitor Enter/Exit ! // The interpreter and compiler assembly code tries to lock using the fast path ! // of this algorithm. Make sure to update that code if the following function is ! // changed. The implementation is extremely sensitive to race condition. Be careful. void ObjectSynchronizer::enter(Handle obj, BasicLock* lock, TRAPS) { if (UseBiasedLocking) { if (!SafepointSynchronize::is_at_safepoint()) { BiasedLocking::revoke(obj, THREAD);
< prev index next >