# HG changeset patch # User dcubed # Date 1236027437 25200 # Node ID 0386097d43d861646eb5052909978cd6c6775a13 # Parent fc6a5ae3fef5ebacfa896dbb3ae37715e388e282 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 diff -r fc6a5ae3fef5 -r 0386097d43d8 src/share/vm/prims/jvmtiThreadState.hpp --- a/src/share/vm/prims/jvmtiThreadState.hpp Sat Dec 20 09:59:01 2008 -0800 +++ b/src/share/vm/prims/jvmtiThreadState.hpp Mon Mar 02 13:57:17 2009 -0700 @@ -319,6 +319,11 @@ JvmtiThreadState *state = thread->jvmti_thread_state(); if (state == NULL) { + if (thread->is_exiting()) { + // don't add a JvmtiThreadState to a thread that is exiting + return NULL; + } + state = new JvmtiThreadState(thread); } return state;