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

Comparing jsr166/src/test/tck/LongAccumulatorTest.java (file contents):
Revision 1.9 by jsr166, Sun Apr 23 04:08:48 2017 UTC vs.
Revision 1.10 by jsr166, Mon Sep 9 01:05:22 2019 UTC

# Line 123 | Line 123 | public class LongAccumulatorTest extends
123              = new LongAccumulator((x, y) -> x + y, 0L);
124          final int nThreads = ThreadLocalRandom.current().nextInt(1, 5);
125          final Phaser phaser = new Phaser(nThreads + 1);
126 <        final int incs = 1_000_000;
126 >        final int incs = expensiveTests ? 1_000_000 : 100_000;
127          final long total = nThreads * incs/2L * (incs - 1); // Gauss
128          final Runnable task = () -> {
129              phaser.arriveAndAwaitAdvance();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines