8297864: Dead code elimination

Reviewed-by: coleenp, pchilanomate
This commit is contained in:
Robbin Ehn 2022-12-05 10:31:35 +00:00
parent 777fb52ef5
commit d523d9d081
100 changed files with 11 additions and 1058 deletions

View file

@ -368,14 +368,6 @@ bool Thread::is_JavaThread_protected_by_TLH(const JavaThread* target) {
return false;
}
ThreadPriority Thread::get_priority(const Thread* const thread) {
ThreadPriority priority;
// Can return an error!
(void)os::get_priority(thread, priority);
assert(MinPriority <= priority && priority <= MaxPriority, "non-Java priority found");
return priority;
}
void Thread::set_priority(Thread* thread, ThreadPriority priority) {
debug_only(check_for_dangling_thread_pointer(thread);)
// Can return an error!