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

Backport-of: a0f32cb1406e4957e84befd9b68444adb662bd13
  • Loading branch information
GoeLin committed Mar 10, 2022
1 parent 365e4ce commit ba26525e29f457a93851e5c9cfd35e031a06008c
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.");

1 comment on commit ba26525

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on ba26525 Mar 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.