hotspot/src/share/vm/runtime/thread.cpp
changeset 27164 6523fa019ffa
parent 26834 41332d860d6a
child 27248 5862834b1594
child 27420 04e6f914cce1
equal deleted inserted replaced
27163:66521b7ba8d6 27164:6523fa019ffa
  1285 void WatcherThread::run() {
  1285 void WatcherThread::run() {
  1286   assert(this == watcher_thread(), "just checking");
  1286   assert(this == watcher_thread(), "just checking");
  1287 
  1287 
  1288   this->record_stack_base_and_size();
  1288   this->record_stack_base_and_size();
  1289   this->initialize_thread_local_storage();
  1289   this->initialize_thread_local_storage();
       
  1290   this->set_native_thread_name(this->name());
  1290   this->set_active_handles(JNIHandleBlock::allocate_block());
  1291   this->set_active_handles(JNIHandleBlock::allocate_block());
  1291   while (!_should_terminate) {
  1292   while (!_should_terminate) {
  1292     assert(watcher_thread() == Thread::current(), "thread consistency check");
  1293     assert(watcher_thread() == Thread::current(), "thread consistency check");
  1293     assert(watcher_thread() == this, "thread consistency check");
  1294     assert(watcher_thread() == this, "thread consistency check");
  1294 
  1295