src/hotspot/share/runtime/thread.cpp
changeset 54291 e6c86f6012bf
parent 54278 16999bd91ba6
child 54323 846bc643f4ef
equal deleted inserted replaced
54290:8af48416e31f 54291:e6c86f6012bf
  4447   Events::log(p, "Thread added: " INTPTR_FORMAT, p2i(p));
  4447   Events::log(p, "Thread added: " INTPTR_FORMAT, p2i(p));
  4448 }
  4448 }
  4449 
  4449 
  4450 void Threads::remove(JavaThread* p) {
  4450 void Threads::remove(JavaThread* p) {
  4451 
  4451 
  4452   // Reclaim the objectmonitors from the omInUseList and omFreeList of the moribund thread.
  4452   // Reclaim the ObjectMonitors from the omInUseList and omFreeList of the moribund thread.
  4453   ObjectSynchronizer::omFlush(p);
  4453   ObjectSynchronizer::omFlush(p);
  4454 
  4454 
  4455   // Extra scope needed for Thread_lock, so we can check
  4455   // Extra scope needed for Thread_lock, so we can check
  4456   // that we do not remove thread without safepoint code notice
  4456   // that we do not remove thread without safepoint code notice
  4457   { MutexLocker ml(Threads_lock);
  4457   { MutexLocker ml(Threads_lock);