On Fri, 29 Jan 2021 23:46:14 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:

>> src/java.desktop/windows/native/libawt/windows/awt_Toolkit.h line 478:
>> 
>>> 476:     BOOL m_breakOnError;
>>> 477: 
>>> 478:     volatile BOOL  m_breakMessageLoop;
>> 
>> Does this volatile modifier resolve the now-removed infinite loop in `while 
>> (!tk.IsDisposed())` in `WToolkit_shutdown`?
>
>> Does this volatile modifier resolve the now-removed infinite loop in `while 
>> (!tk.IsDisposed())` in `WToolkit_shutdown`?
> 
> The loop should not be removed.

Unfortunately, volatile modifier has no effect if infinite loop is reinstated..

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

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

Reply via email to