RFR: 8248381: Create a daemon thread for MonocleTimer

John Neffenger github.com+1413266+jgneff at openjdk.java.net
Sat Jun 27 16:20:53 UTC 2020

On Sat, 27 Jun 2020 14:34:09 GMT, Johan Vos <jvos at openjdk.org> wrote:

>> Fixes [JDK-8248381](https://bugs.openjdk.java.net/browse/JDK-8248381).
> modules/javafx.graphics/src/main/java/com/sun/glass/ui/monocle/MonocleTimer.java line 38:
>> 37:     private static final String THREAD_NAME = "Monocle Timer";
>> 38:     private static final int POOL_SIZE = 1;
>> 39:
> I don't think there is a usecase where POOL_SIZE would be different from 1, so this could be skipped?

Thanks, Johan. I'll remove it.

By the way, I added the thread name constant instead of calling `getClass().getSimpleName()` just so the name would
appear similar to the other threads in the system, shown below.



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

More information about the openjfx-dev mailing list