hotspot/src/share/vm/prims/jvmtiThreadState.hpp
changeset 2134 125f0fb7e9b1
parent 1 489c9b5090e2
child 2135 f82c3012ec86
equal deleted inserted replaced
1756:41bd0a702bc8 2134:125f0fb7e9b1
   317   inline static JvmtiThreadState *state_for_while_locked(JavaThread *thread) {
   317   inline static JvmtiThreadState *state_for_while_locked(JavaThread *thread) {
   318     assert(JvmtiThreadState_lock->is_locked(), "sanity check");
   318     assert(JvmtiThreadState_lock->is_locked(), "sanity check");
   319 
   319 
   320     JvmtiThreadState *state = thread->jvmti_thread_state();
   320     JvmtiThreadState *state = thread->jvmti_thread_state();
   321     if (state == NULL) {
   321     if (state == NULL) {
       
   322       if (thread->is_exiting()) {
       
   323         // don't add a JvmtiThreadState to a thread that is exiting
       
   324         return NULL;
       
   325       }
       
   326 
   322       state = new JvmtiThreadState(thread);
   327       state = new JvmtiThreadState(thread);
   323     }
   328     }
   324     return state;
   329     return state;
   325   }
   330   }
   326 
   331