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

Comparing jsr166/src/test/tck/ForkJoinPool9Test.java (file contents):
Revision 1.7 by jsr166, Sat Feb 9 19:20:54 2019 UTC vs.
Revision 1.9 by jsr166, Tue Aug 13 23:06:39 2019 UTC

# Line 11 | Line 11 | import java.util.concurrent.CountDownLat
11   import java.util.concurrent.ForkJoinPool;
12   import java.util.concurrent.ForkJoinTask;
13   import java.util.concurrent.Future;
14 import java.util.concurrent.ThreadLocalRandom;
14   import java.util.stream.Stream;
15  
16   import junit.framework.Test;
# Line 54 | Line 53 | public class ForkJoinPool9Test extends J
53              Thread currentThread = Thread.currentThread();
54  
55              Stream.of(systemClassLoader, null).forEach(cl -> {
56 <                if (ThreadLocalRandom.current().nextBoolean())
56 >                if (randomBoolean())
57                      // should always be permitted, without effect
58                      currentThread.setContextClassLoader(cl);
59                  });

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines