-
Notifications
You must be signed in to change notification settings - Fork 190
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Linux + Mac have both a boolean wake field, that is evaluated in Display#sleep inside a loop.
Even though the method wake() is synchronized on the display and marked with "this method may be called from any thread", the sleep method is not synchronizing when checking this flag.
As wake is not marked as volatile the JVM is allowed to cache the value of wake in a register and only write it back when the method ends and do not see other threads write in the meanwhile.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working