mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8273451: Remove unreachable return in mutexLocker::wait
Reviewed-by: minqi, coleenp
This commit is contained in:
parent
e6805032ff
commit
9b5991e811
1 changed files with 2 additions and 6 deletions
|
@ -255,12 +255,8 @@ class MonitorLocker: public MutexLocker {
|
|||
}
|
||||
|
||||
bool wait(int64_t timeout = 0) {
|
||||
if (_flag == Mutex::_safepoint_check_flag) {
|
||||
return as_monitor()->wait(timeout);
|
||||
} else {
|
||||
return as_monitor()->wait_without_safepoint_check(timeout);
|
||||
}
|
||||
return false;
|
||||
return _flag == Mutex::_safepoint_check_flag ?
|
||||
as_monitor()->wait(timeout) : as_monitor()->wait_without_safepoint_check(timeout);
|
||||
}
|
||||
|
||||
void notify_all() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue