<AWT Dev> RFR: 8266949: Check possibility to disable OperationTimedOut on Unix [v2]

Sergey Bylokhov serb at openjdk.java.net
Sun May 16 01:32:00 UTC 2021


On Sun, 16 May 2021 01:29:59 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> Our implementation of realSync on Unix is not straightforward, we try to move the awt root window and catch the ConfigureNotify. The problem is that the request to move the awt root window can be ignored, and it is possible that the notification will not come. In this case, we throw non-specified OperationTimedOut and it crashes the random tests here and there.
>> 
>> I have applied the same logic as on Windows and Linux we will wait till timeout(10 seconds) and then exit from the realsync.
>
> Sergey Bylokhov has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Update SunToolkit.java

src/java.desktop/share/classes/sun/awt/SunToolkit.java line 1562:

> 1560:         if (timeout(end) <= 0) {
> 1561:             return false;
> 1562:         }

If the timeout is ended we will exit at the end of this method immediately, but let's post one less event to the EDT.

-------------

PR: https://git.openjdk.java.net/jdk/pull/4038


More information about the awt-dev mailing list