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

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

# Line 129 | Line 129 | public class DoubleAccumulatorTest exten
129              = new DoubleAccumulator((x, y) -> x + y, 0.0);
130          final int nThreads = ThreadLocalRandom.current().nextInt(1, 5);
131          final Phaser phaser = new Phaser(nThreads + 1);
132 <        final int incs = 1_000_000;
132 >        final int incs = expensiveTests ? 1_000_000 : 100_000;
133          final double total = nThreads * incs/2.0 * (incs - 1); // Gauss
134          final Runnable task = () -> {
135              phaser.arriveAndAwaitAdvance();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines