src/hotspot/share/runtime/synchronizer.cpp
changeset 57602 dbe471d2f8f8
parent 55345 492b644bb9c2
child 57734 18f4d3d46d54
equal deleted inserted replaced
57601:36ac7dfc2141 57602:dbe471d2f8f8
   440 // Internal VM locks on java objects
   440 // Internal VM locks on java objects
   441 // standard constructor, allows locking failures
   441 // standard constructor, allows locking failures
   442 ObjectLocker::ObjectLocker(Handle obj, Thread* thread, bool doLock) {
   442 ObjectLocker::ObjectLocker(Handle obj, Thread* thread, bool doLock) {
   443   _dolock = doLock;
   443   _dolock = doLock;
   444   _thread = thread;
   444   _thread = thread;
   445   debug_only(if (StrictSafepointChecks) _thread->check_for_valid_safepoint_state(false);)
   445   _thread->check_for_valid_safepoint_state(false);
   446   _obj = obj;
   446   _obj = obj;
   447 
   447 
   448   if (_dolock) {
   448   if (_dolock) {
   449     ObjectSynchronizer::fast_enter(_obj, &_lock, false, _thread);
   449     ObjectSynchronizer::fast_enter(_obj, &_lock, false, _thread);
   450   }
   450   }