-
Bug
-
Resolution: Fixed
-
P2
-
7
PASSES: JDK 6RI, 6u12, 6u21 - Solaris/Windows
PASSES: JDK7 b80, Solaris
FAILS : at least JDK 7b106 - Solaris (and very rarely on Windows)
Reproduced on JDK7 b106
Thread dump is attached
The following code reflects the code that causes the tests to fail
Deadlock is usually reproduces on 4-60 iteration
Was reproduced on zenit.russia.sun.com, Solaris i586
---------------------------------------------------------------------
import javax.swing.*;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
public class HangUp {
public static void main(String[] args) throws Exception {
for (int i = 0; i < 500; i++) {
System.err.println("iteration = " + i);
SwingUtilities.invokeAndWait(new Runnable() {
public void run() { /* does nothing */ }
});
new CountDownLatch(1).await(1, TimeUnit.SECONDS);
}
}
}
---------------------------------------------------------------------
PASSES: JDK7 b80, Solaris
FAILS : at least JDK 7b106 - Solaris (and very rarely on Windows)
Reproduced on JDK7 b106
Thread dump is attached
The following code reflects the code that causes the tests to fail
Deadlock is usually reproduces on 4-60 iteration
Was reproduced on zenit.russia.sun.com, Solaris i586
---------------------------------------------------------------------
import javax.swing.*;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
public class HangUp {
public static void main(String[] args) throws Exception {
for (int i = 0; i < 500; i++) {
System.err.println("iteration = " + i);
SwingUtilities.invokeAndWait(new Runnable() {
public void run() { /* does nothing */ }
});
new CountDownLatch(1).await(1, TimeUnit.SECONDS);
}
}
}
---------------------------------------------------------------------
- relates to
-
JDK-6424157 java.awt.EventQueue push/pop might cause threading issues
- Resolved
-
JDK-6949936 Provide API for running nested events loops, similar to what modal dialogs do
- Closed