ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/JSR166TestCase.java
(Generate patch)

Comparing jsr166/src/test/tck/JSR166TestCase.java (file contents):
Revision 1.200 by jsr166, Wed Aug 10 01:28:14 2016 UTC vs.
Revision 1.203 by jsr166, Thu Sep 15 03:46:19 2016 UTC

# Line 1005 | Line 1005 | public class JSR166TestCase extends Test
1005          ThreadMXBean threadMXBean = ManagementFactory.getThreadMXBean();
1006          System.err.println("------ stacktrace dump start ------");
1007          for (ThreadInfo info : threadMXBean.dumpAllThreads(true, true)) {
1008 <            String name = info.getThreadName();
1008 >            final String name = info.getThreadName();
1009 >            String lockName;
1010              if ("Signal Dispatcher".equals(name))
1011                  continue;
1012              if ("Reference Handler".equals(name)
1013 <                && info.getLockName().startsWith("java.lang.ref.Reference$Lock"))
1013 >                && (lockName = info.getLockName()) != null
1014 >                && lockName.startsWith("java.lang.ref.Reference$Lock"))
1015                  continue;
1016              if ("Finalizer".equals(name)
1017 <                && info.getLockName().startsWith("java.lang.ref.ReferenceQueue$Lock"))
1017 >                && (lockName = info.getLockName()) != null
1018 >                && lockName.startsWith("java.lang.ref.ReferenceQueue$Lock"))
1019                  continue;
1020              if ("checkForWedgedTest".equals(name))
1021                  continue;
# Line 1237 | Line 1240 | public class JSR166TestCase extends Test
1240       * Sleeps until the given time has elapsed.
1241       * Throws AssertionFailedError if interrupted.
1242       */
1243 <    void sleep(long millis) {
1243 >    static void sleep(long millis) {
1244          try {
1245              delay(millis);
1246          } catch (InterruptedException fail) {
# Line 1756 | Line 1759 | public class JSR166TestCase extends Test
1759       * A CyclicBarrier that uses timed await and fails with
1760       * AssertionFailedErrors instead of throwing checked exceptions.
1761       */
1762 <    public class CheckedBarrier extends CyclicBarrier {
1762 >    public static class CheckedBarrier extends CyclicBarrier {
1763          public CheckedBarrier(int parties) { super(parties); }
1764  
1765          public int await() {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines