Mon, 02 Mar 2009 13:57:17 -0700
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
src/share/vm/prims/jvmtiThreadState.hpp | file | annotate | diff | comparison | revisions |
1.1 --- a/src/share/vm/prims/jvmtiThreadState.hpp Sat Dec 20 09:59:01 2008 -0800 1.2 +++ b/src/share/vm/prims/jvmtiThreadState.hpp Mon Mar 02 13:57:17 2009 -0700 1.3 @@ -319,6 +319,11 @@ 1.4 1.5 JvmtiThreadState *state = thread->jvmti_thread_state(); 1.6 if (state == NULL) { 1.7 + if (thread->is_exiting()) { 1.8 + // don't add a JvmtiThreadState to a thread that is exiting 1.9 + return NULL; 1.10 + } 1.11 + 1.12 state = new JvmtiThreadState(thread); 1.13 } 1.14 return state;