mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-25 22:04:51 +02:00
8043630: Method os::yield_all() should be removed
Reviewed-by: dholmes, dsimms
This commit is contained in:
parent
d9a2dbc73b
commit
5507f2b476
9 changed files with 9 additions and 58 deletions
|
@ -3795,13 +3795,6 @@ void os::yield() {
|
|||
|
||||
os::YieldResult os::NakedYield() { sched_yield(); return os::YIELD_UNKNOWN; }
|
||||
|
||||
void os::yield_all() {
|
||||
// Yields to all threads, including threads with lower priorities
|
||||
// Threads on Linux are all with same priority. The Solaris style
|
||||
// os::yield_all() with nanosleep(1ms) is not necessary.
|
||||
sched_yield();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// thread priority support
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue