Skip to content
Permalink
Browse files
8268906: gc/g1/mixedgc/TestOldGenCollectionUsage.java assumes that GC…
…s take 1ms minimum

Reviewed-by: kbarrett, ayang, lkorinth
  • Loading branch information
Thomas Schatzl committed Jun 30, 2021
1 parent ee0247f commit a0f32cb1406e4957e84befd9b68444adb662bd13
Showing 1 changed file with 2 additions and 2 deletions.
@@ -139,8 +139,8 @@ public void run() {
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.");

0 comments on commit a0f32cb

Please sign in to comment.