src/java.desktop/windows/classes/sun/awt/windows/WToolkit.java

Print this page

        

@@ -301,13 +301,14 @@
 
     @Override
     public void run() {
         AccessController.doPrivileged((PrivilegedAction<Void>) () -> {
             Thread.currentThread().setContextClassLoader(null);
+            Thread.currentThread().setPriority(Thread.NORM_PRIORITY + 1);
             return null;
         });
-        Thread.currentThread().setPriority(Thread.NORM_PRIORITY + 1);
+
         boolean startPump = init();
 
         if (startPump) {
             registerShutdownHook();
         }