src/share/vm/prims/jvmtiThreadState.hpp

changeset 1043
0386097d43d8
parent 435
a61af66fc99e
child 1044
ea20d7ce26b0
     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;

mercurial