src/share/vm/prims/jvmtiThreadState.hpp

changeset 1043
0386097d43d8
parent 435
a61af66fc99e
child 1044
ea20d7ce26b0
equal deleted inserted replaced
937:fc6a5ae3fef5 1043:0386097d43d8
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

mercurial