Mercurial > hg > truffle
comparison src/share/vm/prims/jvmtiThreadState.hpp @ 608:0386097d43d8
6700114: 3/4 Assertion (_thread->get_interp_only_mode() == 1,"leaving interp only when mode not one")
Summary: Don't create JvmtiThreadState for an exiting JavaThread.
Reviewed-by: coleenp, swamyv
author | dcubed |
---|---|
date | Mon, 02 Mar 2009 13:57:17 -0700 |
parents | a61af66fc99e |
children | ea20d7ce26b0 |
comparison
equal
deleted
inserted
replaced
502:fc6a5ae3fef5 | 608: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 |