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.");

3 comments on commit a0f32cb

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on a0f32cb Jun 30, 2021

Choose a reason for hiding this comment

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

@GoeLin
Copy link
Member

@GoeLin GoeLin commented on a0f32cb Mar 9, 2022

Choose a reason for hiding this comment

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

/backport jdk17u-dev

@openjdk
Copy link

@openjdk openjdk bot commented on a0f32cb Mar 9, 2022

Choose a reason for hiding this comment

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

@GoeLin the backport was successfully created on the branch GoeLin-backport-a0f32cb1 in my personal fork of openjdk/jdk17u-dev. To create a pull request with this backport targeting openjdk/jdk17u-dev:master, just click the following link:

➡️ Create pull request

The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:

Hi all,

This pull request contains a backport of commit a0f32cb1 from the openjdk/jdk repository.

The commit being backported was authored by Thomas Schatzl on 30 Jun 2021 and was reviewed by Kim Barrett, Albert Mingkun Yang and Leo Korinth.

Thanks!

If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk17u-dev:

$ git fetch https://github.com/openjdk-bots/jdk17u-dev GoeLin-backport-a0f32cb1:GoeLin-backport-a0f32cb1
$ git checkout GoeLin-backport-a0f32cb1
# make changes
$ git add paths/to/changed/files
$ git commit --message 'Describe additional changes made'
$ git push https://github.com/openjdk-bots/jdk17u-dev GoeLin-backport-a0f32cb1

Please sign in to comment.