equal
deleted
inserted
replaced
780 void ThreadSafepointState::examine_state_of_thread() { |
780 void ThreadSafepointState::examine_state_of_thread() { |
781 assert(is_running(), "better be running or just have hit safepoint poll"); |
781 assert(is_running(), "better be running or just have hit safepoint poll"); |
782 |
782 |
783 JavaThreadState state = _thread->thread_state(); |
783 JavaThreadState state = _thread->thread_state(); |
784 |
784 |
|
785 // Save the state at the start of safepoint processing. |
|
786 _orig_thread_state = state; |
|
787 |
785 // Check for a thread that is suspended. Note that thread resume tries |
788 // Check for a thread that is suspended. Note that thread resume tries |
786 // to grab the Threads_lock which we own here, so a thread cannot be |
789 // to grab the Threads_lock which we own here, so a thread cannot be |
787 // resumed during safepoint synchronization. |
790 // resumed during safepoint synchronization. |
788 |
791 |
789 // We check to see if this thread is suspended without locking to |
792 // We check to see if this thread is suspended without locking to |