8225788: Dead code in thread and safepoint

Reviewed-by: dholmes, dcubed, coleenp
This commit is contained in:
Robbin Ehn 2019-08-15 09:06:42 +02:00
parent 6af89d6412
commit 57dbffe53f
9 changed files with 7 additions and 186 deletions

View file

@ -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.