From 5ed51852c3d35f52c0d988e6a96506a1585400e2 Mon Sep 17 00:00:00 2001 From: dcubed Date: Mon, 2 Mar 2009 13:57:17 -0700 Subject: [PATCH] 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/share/vm/prims/jvmtiThreadState.hpp b/src/share/vm/prims/jvmtiThreadState.hpp index 703d87339..5472a620b 100644 --- a/src/share/vm/prims/jvmtiThreadState.hpp +++ b/src/share/vm/prims/jvmtiThreadState.hpp @@ -319,6 +319,11 @@ class JvmtiThreadState : public CHeapObj { 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; -- GitLab