mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2026-01-09 18:11:42 +01:00
JRE-382 Three AWT-tests become hanging starting since master-875
(cherry picked from commit 7d492101db8fcbb3d285fd8e9669f74b0e0fce8f) (cherry picked from commitb965f85c1b) (cherry picked from commit5b61c2f72a)
This commit is contained in:
@@ -730,7 +730,16 @@ public final class LWCToolkit extends LWToolkit {
|
||||
executor = new ThreadPoolExecutor(1, Integer.MAX_VALUE,
|
||||
60L, TimeUnit.SECONDS,
|
||||
new SynchronousQueue<>(),
|
||||
Executors.privilegedThreadFactory());
|
||||
new ThreadFactory() {
|
||||
private ThreadFactory factory = Executors.privilegedThreadFactory();
|
||||
@Override
|
||||
public Thread newThread(Runnable r) {
|
||||
Thread t = factory.newThread(r);
|
||||
t.setDaemon(true);
|
||||
t.setName("AWT-SelectorPerformer " + t.getName());
|
||||
return t;
|
||||
}
|
||||
});
|
||||
}
|
||||
LinkedBlockingQueue<InvocationEvent> currentQueue;
|
||||
synchronized (invocations) {
|
||||
|
||||
Reference in New Issue
Block a user