On Sun, 16 May 2021 01:29:59 GMT, Sergey Bylokhov <s...@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

Reply via email to