mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8225788: Dead code in thread and safepoint
Reviewed-by: dholmes, dcubed, coleenp
This commit is contained in:
parent
6af89d6412
commit
57dbffe53f
9 changed files with 7 additions and 186 deletions
|
@ -952,8 +952,7 @@ void SafepointSynchronize::print_safepoint_timeout() {
|
|||
|
||||
ThreadSafepointState::ThreadSafepointState(JavaThread *thread)
|
||||
: _at_poll_safepoint(false), _thread(thread), _safepoint_safe(false),
|
||||
_safepoint_id(SafepointSynchronize::InactiveSafepointCounter),
|
||||
_orig_thread_state(_thread_uninitialized), _next(NULL) {
|
||||
_safepoint_id(SafepointSynchronize::InactiveSafepointCounter), _next(NULL) {
|
||||
}
|
||||
|
||||
void ThreadSafepointState::create(JavaThread *thread) {
|
||||
|
@ -990,9 +989,6 @@ void ThreadSafepointState::examine_state_of_thread(uint64_t safepoint_count) {
|
|||
return;
|
||||
}
|
||||
|
||||
// Save the state at the start of safepoint processing.
|
||||
_orig_thread_state = stable_state;
|
||||
|
||||
// Check for a thread that is suspended. Note that thread resume tries
|
||||
// to grab the Threads_lock which we own here, so a thread cannot be
|
||||
// resumed during safepoint synchronization.
|
||||
|
@ -1060,8 +1056,6 @@ void ThreadSafepointState::print_on(outputStream *st) const {
|
|||
_thread->print_thread_state_on(st);
|
||||
}
|
||||
|
||||
void ThreadSafepointState::print() const { print_on(tty); }
|
||||
|
||||
// ---------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
// Block the thread at poll or poll return for safepoint/handshake.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue