1.1 --- a/src/share/vm/prims/jvmtiThreadState.hpp Mon Mar 02 13:57:17 2009 -0700 1.2 +++ b/src/share/vm/prims/jvmtiThreadState.hpp Mon Mar 02 14:00:23 2009 -0700 1.3 @@ -314,6 +314,7 @@ 1.4 void update_for_pop_top_frame(); 1.5 1.6 // already holding JvmtiThreadState_lock - retrieve or create JvmtiThreadState 1.7 + // Can return NULL if JavaThread is exiting. 1.8 inline static JvmtiThreadState *state_for_while_locked(JavaThread *thread) { 1.9 assert(JvmtiThreadState_lock->is_locked(), "sanity check"); 1.10 1.11 @@ -330,6 +331,7 @@ 1.12 } 1.13 1.14 // retrieve or create JvmtiThreadState 1.15 + // Can return NULL if JavaThread is exiting. 1.16 inline static JvmtiThreadState *state_for(JavaThread *thread) { 1.17 JvmtiThreadState *state = thread->jvmti_thread_state(); 1.18 if (state == NULL) {