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

Arun Joseph ajoseph at openjdk.java.net
Fri Apr 16 08:52:36 UTC 2021


On Thu, 15 Apr 2021 23:41:02 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:

>> Issue: Java application (with WebView) will completely freeze after using it for a while.
>> 
>> Fix: Use native isMainThread functions instead of JNI call.
>
> 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`.

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

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


More information about the openjfx-dev mailing list