equal
deleted
inserted
replaced
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 |