src/hotspot/share/gc/cms/concurrentMarkSweepGeneration.cpp
changeset 54663 f03d5a093093
parent 54623 1126f0607c70
child 54669 ad45b3802d4e
equal deleted inserted replaced
54662:afce4a27f2c2 54663:f03d5a093093
   489   _abort_preclean(false),
   489   _abort_preclean(false),
   490   _start_sampling(false),
   490   _start_sampling(false),
   491   _stats(cmsGen),
   491   _stats(cmsGen),
   492   _eden_chunk_lock(new Mutex(Mutex::leaf + 1, "CMS_eden_chunk_lock", true,
   492   _eden_chunk_lock(new Mutex(Mutex::leaf + 1, "CMS_eden_chunk_lock", true,
   493                              //verify that this lock should be acquired with safepoint check.
   493                              //verify that this lock should be acquired with safepoint check.
   494                              Monitor::_safepoint_check_sometimes)),
   494                              Monitor::_safepoint_check_never)),
   495   _eden_chunk_array(NULL),     // may be set in ctor body
   495   _eden_chunk_array(NULL),     // may be set in ctor body
   496   _eden_chunk_index(0),        // -- ditto --
   496   _eden_chunk_index(0),        // -- ditto --
   497   _eden_chunk_capacity(0),     // -- ditto --
   497   _eden_chunk_capacity(0),     // -- ditto --
   498   _survivor_chunk_array(NULL), // -- ditto --
   498   _survivor_chunk_array(NULL), // -- ditto --
   499   _survivor_chunk_index(0),    // -- ditto --
   499   _survivor_chunk_index(0),    // -- ditto --
  5641 // further below.
  5641 // further below.
  5642 CMSBitMap::CMSBitMap(int shifter, int mutex_rank, const char* mutex_name):
  5642 CMSBitMap::CMSBitMap(int shifter, int mutex_rank, const char* mutex_name):
  5643   _shifter(shifter),
  5643   _shifter(shifter),
  5644   _bm(),
  5644   _bm(),
  5645   _lock(mutex_rank >= 0 ? new Mutex(mutex_rank, mutex_name, true,
  5645   _lock(mutex_rank >= 0 ? new Mutex(mutex_rank, mutex_name, true,
  5646                                     Monitor::_safepoint_check_sometimes) : NULL)
  5646                                     Monitor::_safepoint_check_never) : NULL)
  5647 {
  5647 {
  5648   _bmStartWord = 0;
  5648   _bmStartWord = 0;
  5649   _bmWordSize  = 0;
  5649   _bmWordSize  = 0;
  5650 }
  5650 }
  5651 
  5651 
  7524                        !CMSCollector::foregroundGCIsActive(); ++i) {
  7524                        !CMSCollector::foregroundGCIsActive(); ++i) {
  7525     os::sleep(Thread::current(), 1, false);
  7525     os::sleep(Thread::current(), 1, false);
  7526   }
  7526   }
  7527 
  7527 
  7528   ConcurrentMarkSweepThread::synchronize(true);
  7528   ConcurrentMarkSweepThread::synchronize(true);
  7529   _freelistLock->lock();
  7529   _freelistLock->lock_without_safepoint_check();
  7530   _bitMap->lock()->lock_without_safepoint_check();
  7530   _bitMap->lock()->lock_without_safepoint_check();
  7531   _collector->startTimer();
  7531   _collector->startTimer();
  7532 }
  7532 }
  7533 
  7533 
  7534 #ifndef PRODUCT
  7534 #ifndef PRODUCT