Skip to content

Commit

Permalink
8268906: gc/g1/mixedgc/TestOldGenCollectionUsage.java assumes that GC…
Browse files Browse the repository at this point in the history
…s take 1ms minimum

Backport-of: a0f32cb
  • Loading branch information
SendaoYan authored and TheRealMDoerr committed Jun 25, 2024
1 parent 3b4f583 commit f8e87df
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,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.");
Expand Down

1 comment on commit f8e87df

@openjdk-notifier
Copy link

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.