8294705: Disable an assertion in test/jdk/java/util/DoubleStreamSums/CompensatedSums.java
Reviewed-by: bpb
This commit is contained in:
parent
d5a1521fde
commit
c08ff2c7b8
@ -91,7 +91,13 @@ public class CompensatedSums {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Assert.assertTrue(jdkParallelStreamError <= goodParallelStreamError);
|
Assert.assertTrue(jdkParallelStreamError <= goodParallelStreamError);
|
||||||
Assert.assertTrue(badParallelStreamError >= jdkParallelStreamError);
|
/*
|
||||||
|
* Due to floating-point addition being inherently non-associative,
|
||||||
|
* and due to the unpredictable scheduling of the threads used
|
||||||
|
* in parallel streams, this assertion can fail intermittently,
|
||||||
|
* hence is suppressed for now.
|
||||||
|
*/
|
||||||
|
// Assert.assertTrue(badParallelStreamError >= jdkParallelStreamError);
|
||||||
|
|
||||||
Assert.assertTrue(goodSequentialStreamError >= jdkSequentialStreamError);
|
Assert.assertTrue(goodSequentialStreamError >= jdkSequentialStreamError);
|
||||||
Assert.assertTrue(naive > jdkSequentialStreamError);
|
Assert.assertTrue(naive > jdkSequentialStreamError);
|
||||||
@ -144,4 +150,4 @@ public class CompensatedSums {
|
|||||||
ll[2] += rr[2];
|
ll[2] += rr[2];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user