1308 void WatcherThread::run() { |
1308 void WatcherThread::run() { |
1309 assert(this == watcher_thread(), "just checking"); |
1309 assert(this == watcher_thread(), "just checking"); |
1310 |
1310 |
1311 this->record_stack_base_and_size(); |
1311 this->record_stack_base_and_size(); |
1312 this->initialize_thread_local_storage(); |
1312 this->initialize_thread_local_storage(); |
|
1313 this->set_native_thread_name(this->name()); |
1313 this->set_active_handles(JNIHandleBlock::allocate_block()); |
1314 this->set_active_handles(JNIHandleBlock::allocate_block()); |
1314 while(!_should_terminate) { |
1315 while(!_should_terminate) { |
1315 assert(watcher_thread() == Thread::current(), "thread consistency check"); |
1316 assert(watcher_thread() == Thread::current(), "thread consistency check"); |
1316 assert(watcher_thread() == this, "thread consistency check"); |
1317 assert(watcher_thread() == this, "thread consistency check"); |
1317 |
1318 |