src/hotspot/share/prims/jvmtiThreadState.inline.hpp
changeset 57745 789e967c2731
parent 53244 9807daeb47c4
equal deleted inserted replaced
57739:6717d7e59db4 57745:789e967c2731
    88   if (state == NULL) {
    88   if (state == NULL) {
    89     MutexLocker mu(JvmtiThreadState_lock);
    89     MutexLocker mu(JvmtiThreadState_lock);
    90     // check again with the lock held
    90     // check again with the lock held
    91     state = state_for_while_locked(thread);
    91     state = state_for_while_locked(thread);
    92   } else {
    92   } else {
    93     CHECK_UNHANDLED_OOPS_ONLY(Thread::current()->clear_unhandled_oops());
    93     // Check possible safepoint even if state is non-null.
       
    94     // (Note: the thread argument isn't the current thread)
       
    95     DEBUG_ONLY(JavaThread::current()->check_possible_safepoint());
    94   }
    96   }
    95   return state;
    97   return state;
    96 }
    98 }
    97 
    99 
    98 #endif // SHARE_PRIMS_JVMTITHREADSTATE_INLINE_HPP
   100 #endif // SHARE_PRIMS_JVMTITHREADSTATE_INLINE_HPP