mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-25 22:04:51 +02:00
8044339: Update FilterSpuriousWakeups documentation. Review "Solaris only" vm options descriptions
Reviewed-by: kvn, dholmes, iignatyev
This commit is contained in:
parent
e09b9cbc3c
commit
f19a510532
4 changed files with 10 additions and 16 deletions
|
@ -5538,10 +5538,8 @@ int os::PlatformEvent::park(jlong millis) {
|
|||
//
|
||||
// Thread.interrupt and object.notify{All} both call Event::set.
|
||||
// That is, we treat thread.interrupt as a special case of notification.
|
||||
// The underlying Solaris implementation, cond_timedwait, admits
|
||||
// spurious/premature wakeups, but the JLS/JVM spec prevents the
|
||||
// JVM from making those visible to Java code. As such, we must
|
||||
// filter out spurious wakeups. We assume all ETIME returns are valid.
|
||||
// We ignore spurious OS wakeups unless FilterSpuriousWakeups is false.
|
||||
// We assume all ETIME returns are valid.
|
||||
//
|
||||
// TODO: properly differentiate simultaneous notify+interrupt.
|
||||
// In that case, we should propagate the notify to another waiter.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue