<AWT Dev> [8] Review request for 7158311 GraphicsDevice.setDisplayMode(...) leads to hang when DISPLAY variable points to Oracle Linux

Artem Ananiev artem.ananiev at oracle.com
Wed Oct 2 06:09:00 PDT 2013


On 10/2/2013 5:01 PM, Sergey Bylokhov wrote:
> Does anybody know why we use awtLock for soo long time in the toolkit
> loop? Especially why we call dispatchEvent() under this lock?

It is by design. We do everything under the awtLock on the toolkit 
thread, except waiting for incoming events.

Thanks,

Artem

> On 02.10.2013 1:03, Anthony Petrov wrote:
>> The fix looks fine to me.
>>
>> --
>> best regards,
>> Anthony
>>
>> On 10/01/2013 06:35 PM, Alexander Zvegintsev wrote:
>>> Hello,
>>>
>>> Could you please review a fix for following issues:
>>> https://bugs.openjdk.java.net/browse/JDK-7158311
>>> https://bugs.openjdk.java.net/browse/JDK-8001463
>>>
>>> webrev:
>>> http://cr.openjdk.java.net/~serb/alexz/7158311/webrev.00/
>>>
>>> All X11 implementations of DisplayChangedListener does not call any X11
>>> routines, hence
>>> SunGraphicsEnvironment.displayChanged() callback does not require an
>>> AWTLock and we
>>> can temporarily release it to avoid deadlock.
>>>
>
>


More information about the awt-dev mailing list