Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JDK-8287671: Adjust ForceGC to invoke System::gc fewer times for negative case #9021

Closed
wants to merge 1 commit into from

Conversation

mlchung
Copy link
Member

@mlchung mlchung commented Jun 3, 2022

This reapplies JDK-8287384 and adjust the number of GCs for negative case, i.e. the condition is never met that is used to verify a reference is not GC'ed.


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8287671: Adjust ForceGC to invoke System::gc fewer times for negative case

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/9021/head:pull/9021
$ git checkout pull/9021

Update a local copy of the PR:
$ git checkout pull/9021
$ git pull https://git.openjdk.java.net/jdk pull/9021/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 9021

View PR using the GUI difftool:
$ git pr show -t 9021

Using diff file

Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/9021.diff

@bridgekeeper
Copy link

bridgekeeper bot commented Jun 3, 2022

👋 Welcome back mchung! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk openjdk bot added the rfr Pull request is ready for review label Jun 3, 2022
@openjdk
Copy link

openjdk bot commented Jun 3, 2022

@mlchung The following label will be automatically applied to this pull request:

  • core-libs

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added the core-libs core-libs-dev@openjdk.org label Jun 3, 2022
@mlbridge
Copy link

mlbridge bot commented Jun 3, 2022

Webrevs

@openjdk
Copy link

openjdk bot commented Jun 3, 2022

@mlchung This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8287671: Adjust ForceGC to invoke System::gc fewer times for negative case

Reviewed-by: rriggs, bchristi, xuelei

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 11 new commits pushed to the master branch:

  • 308c068: 8287558: Remove remset coarsening stats during g1 remset summary printing
  • d76c108: 8286772: java/awt/dnd/DropTargetInInternalFrameTest/DropTargetInInternalFrameTest.html times out and fails in Windows
  • 005a330: 8287826: javax/accessibility/4702233/AccessiblePropertiesTest.java fails to compile
  • e2cfe2e: 8231491: JDI tc02x004 failed again due to wrong # of breakpoints
  • b6cdfd6: 8287740: NSAccessibilityShowMenuAction not working for text editors
  • 25e9901: 8285305: Create an automated test for JDK-4495286
  • 6f526e1: 8285373: Create an automated test for JDK-4702233
  • a7e07fd: 8287102: ImageReaderSpi.canDecodeInput() for standard plugins should return false if a stream is too short
  • 7a0c8b1: 8286850: [macos] Add support for signing user provided app image
  • 0b35460: 8283694: Improve bit manipulation and boolean to integer conversion operations on x86_64
  • ... and 1 more: https://git.openjdk.java.net/jdk/compare/ce5ae51773974dfc324b5fff52accbe14a0c032e...master

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Jun 3, 2022
@XueleiFan
Copy link
Member

XueleiFan commented Jun 4, 2022

@mlchung Thank you for pick up and fix the issue.

The waiting time now is reduced from 10 seconds to 1 seconds. As most of the tests intermittent fail, the failure may be more popular now. Alternatively, it might be OK to run less cases in UnloadingTest.java (for example one or two call to tryUnload() in one test by separating the case into a few). But let's see if the intermittent failure is still rare enough.

@mlchung
Copy link
Member Author

mlchung commented Jun 6, 2022

JDK-8287384 affects the tests using ForceGC for negative cases only. It will return with a fewer GC cycles of a shortened wait time between each cycle. It will be okay since a strongly reachable reference will never be GC'ed.

@mlchung
Copy link
Member Author

mlchung commented Jun 6, 2022

/integrate

@openjdk
Copy link

openjdk bot commented Jun 6, 2022

Going to push as commit 2e332c2.
Since your change was applied there have been 22 commits pushed to the master branch:

  • c328f8f: 8287764: runtime/cds/serviceability/ReplaceCriticalClasses failed on localized Windows
  • 4d6fb51: 8287524: Improve checkboxes to select releases on deprecated API page
  • 0d1a305: 8287732: jdk/jshell/ToolEnablePreviewTest.java fails on x86_32 after JDK-8287496
  • 24fe8ad: 8283307: Vectorize unsigned shift right on signed subword types
  • f347ff9: 8283894: Intrinsify compress and expand bits on x86
  • ebc012e: 8287205: generate_cont_thaw generates dead code after jump to exception handler
  • 8c460b0: 8287609: macOS: SIGSEGV at [CoreFoundation] CFArrayGetCount / sun.font.CFont.getTableBytesNative
  • 3df4b03: 8287837: ProblemList java/lang/ref/OOMEInReferenceHandler.java in -Xcomp
  • a6fc485: 8287753: [spelling] close well-established compounds
  • a113e16: 8287830: gtest fails to compile after JDK-8287661
  • ... and 12 more: https://git.openjdk.java.net/jdk/compare/ce5ae51773974dfc324b5fff52accbe14a0c032e...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Jun 6, 2022
@openjdk openjdk bot closed this Jun 6, 2022
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Jun 6, 2022
@openjdk
Copy link

openjdk bot commented Jun 6, 2022

@mlchung Pushed as commit 2e332c2.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@mlchung mlchung deleted the JDK-8287671 branch September 7, 2022 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core-libs core-libs-dev@openjdk.org integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

4 participants