On Thu, 15 Apr 2021 23:41:02 GMT, Kevin Rushforth <k...@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