8268906: gc/g1/mixedgc/TestOldGenCollectionUsage.java assumes that GCs take 1ms minimum

Reviewed-by: kbarrett, ayang, lkorinth
This commit is contained in:
Thomas Schatzl 2021-06-30 09:14:26 +00:00
parent ee0247f056
commit a0f32cb140

View File

@ -139,8 +139,8 @@ public class TestOldGenCollectionUsage {
if (newCollectionCount <= collectionCount) {
throw new RuntimeException("No new collection");
}
if (newCollectionTime <= collectionTime) {
throw new RuntimeException("Collector has not run some more");
if (newCollectionTime < collectionTime) {
throw new RuntimeException("Collection time ran backwards");
}
System.out.println("Test passed.");