hotspot/src/share/vm/gc/cms/concurrentMarkSweepThread.cpp
changeset 34633 2a6c7c7b30a7
parent 33107 77bf0d2069a3
child 37073 c39d0903390b
equal deleted inserted replaced
34632:bf3518bba285 34633:2a6c7c7b30a7
   142                      Mutex::_no_safepoint_check_flag);
   142                      Mutex::_no_safepoint_check_flag);
   143     assert(_cmst == this, "Weird!");
   143     assert(_cmst == this, "Weird!");
   144     _cmst = NULL;
   144     _cmst = NULL;
   145     Terminator_lock->notify();
   145     Terminator_lock->notify();
   146   }
   146   }
   147 
       
   148   // Thread destructor usually does this..
       
   149   ThreadLocalStorage::set_thread(NULL);
       
   150 }
   147 }
   151 
   148 
   152 #ifndef PRODUCT
   149 #ifndef PRODUCT
   153 void ConcurrentMarkSweepThread::verify_ok_to_terminate() const {
   150 void ConcurrentMarkSweepThread::verify_ok_to_terminate() const {
   154   assert(!(CGC_lock->owned_by_self() || cms_thread_has_cms_token() ||
   151   assert(!(CGC_lock->owned_by_self() || cms_thread_has_cms_token() ||