1314 void WatcherThread::run() { |
1314 void WatcherThread::run() { |
1315 assert(this == watcher_thread(), "just checking"); |
1315 assert(this == watcher_thread(), "just checking"); |
1316 |
1316 |
1317 this->record_stack_base_and_size(); |
1317 this->record_stack_base_and_size(); |
1318 this->initialize_thread_local_storage(); |
1318 this->initialize_thread_local_storage(); |
|
1319 this->set_native_thread_name(this->name()); |
1319 this->set_active_handles(JNIHandleBlock::allocate_block()); |
1320 this->set_active_handles(JNIHandleBlock::allocate_block()); |
1320 while(!_should_terminate) { |
1321 while(!_should_terminate) { |
1321 assert(watcher_thread() == Thread::current(), "thread consistency check"); |
1322 assert(watcher_thread() == Thread::current(), "thread consistency check"); |
1322 assert(watcher_thread() == this, "thread consistency check"); |
1323 assert(watcher_thread() == this, "thread consistency check"); |
1323 |
1324 |