RFR: 8263788: JavaFX application freezes completely after some time when using the WebView

Kevin Rushforth kcr at openjdk.java.net
Fri Apr 16 17:25:35 UTC 2021


On Fri, 16 Apr 2021 08:49:19 GMT, Arun Joseph <ajoseph at openjdk.org> wrote:

>> modules/javafx.web/src/main/native/Source/WTF/wtf/java/MainThreadJava.cpp line 45:
>> 
>>> 43: #elif OS(WINDOWS)
>>> 44: static ThreadIdentifier mainThread { 0 };
>>> 45: #endif
>> 
>> Both here and below, where the `isMainThread` is defined, assume that `UNIX` and `WINDOWS` are the only two options. I presume this is a valid assumption?
>
> I've tested in all three platforms. The two options are sufficient as Mac and Linux uses `pthread`.

That's what I figured. It's only theoretical, in that if we ever add a platform that isn't one of `WINDOWS` or `UNIX` it wouldn't compile, but I imagine we have very many other places where that is also true.

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

PR: https://git.openjdk.java.net/jfx/pull/461


More information about the openjfx-dev mailing list