250 |
250 |
251 void VMThread::run() { |
251 void VMThread::run() { |
252 assert(this == vm_thread(), "check"); |
252 assert(this == vm_thread(), "check"); |
253 |
253 |
254 this->initialize_thread_local_storage(); |
254 this->initialize_thread_local_storage(); |
|
255 this->set_native_thread_name(this->name()); |
255 this->record_stack_base_and_size(); |
256 this->record_stack_base_and_size(); |
256 // Notify_lock wait checks on active_handles() to rewait in |
257 // Notify_lock wait checks on active_handles() to rewait in |
257 // case of spurious wakeup, it should wait on the last |
258 // case of spurious wakeup, it should wait on the last |
258 // value set prior to the notify |
259 // value set prior to the notify |
259 this->set_active_handles(JNIHandleBlock::allocate_block()); |
260 this->set_active_handles(JNIHandleBlock::allocate_block()); |