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

Reviewed-by: kbarrett, ayang, lkorinth
  • Loading branch information
Thomas Schatzl committed Jun 30, 2021
1 parent ee0247f commit a0f32cb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down

5 comments on commit a0f32cb

@openjdk-notifier
Copy link

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

@sendaoYan
Copy link
Member

Choose a reason for hiding this comment

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

/backport jdk11u-dev

@openjdk
Copy link

@openjdk openjdk bot commented on a0f32cb Jun 7, 2024

Choose a reason for hiding this comment

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

@sendaoYan the backport was successfully created on the branch backport-sendaoYan-a0f32cb1-master in my personal fork of openjdk/jdk11u-dev. To create a pull request with this backport targeting openjdk/jdk11u-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/jdk11u-dev:

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

Please sign in to comment.