-
Notifications
You must be signed in to change notification settings - Fork 208
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
8286045: Use ForceGC for cleaner test cases #1987
Conversation
👋 Welcome back andrew! A progress list of the required criteria for merging this PR into |
This backport pull request has now been updated with issue from the original commit. |
|
/approval request Fixes the CheckCleanerBound.java test which was added and problem-listed by the last security update in October 2023. Backport is unclean (see PR for full details) but has been reviewed by Matthias Bäsken & yan. |
@gnu-andrew |
@gnu-andrew 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:
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 232 new commits pushed to the
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 |
@gnu-andrew This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
Hi @gnu-andrew, |
@gnu-andrew This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
I was waiting for it to be approved. It seems it has been, though there is nothing on the PR. |
Going to push as commit d2df108.
Your commit was automatically rebased without conflicts. |
@gnu-andrew Pushed as commit d2df108. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
JDK-8286045 is a test fix which aims to make GC usage within test cases more reliable by using the
ForceGC
library added by JDK-8238358.It adjusts three test cases:
test/jdk/javax/security/auth/callback/PasswordCallback/CheckCleanerBound.java
test/jdk/sun/security/jgss/GssContextCleanup.java
test/jdk/sun/security/jgss/GssNameCleanup.java
The two
jgss
tests are introduced by a finalization cleanup, JDK-8284490: "Remove finalizer method in java.security.jgss", which is not in 17u, so this backport only includes the changes toCheckCleanerBound.java
, which was introduced in the 2023-10 security update.The changes to
CheckCleanerBound.java
apply cleanly, but the test still fails asCheckCleanerBound.java
never received the changes in the backport of JDK-8285796 as this backport was introduced in 17u about a week beforeCheckCleanerBound.java
. With that additional fragment cherry-picked from the trunk version of 8285796, the test passes.Finally, we drop the
ProblemList.txt
addition made by JDK-8285785 as the test now passes.Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk17u-dev.git pull/1987/head:pull/1987
$ git checkout pull/1987
Update a local copy of the PR:
$ git checkout pull/1987
$ git pull https://git.openjdk.org/jdk17u-dev.git pull/1987/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1987
View PR using the GUI difftool:
$ git pr show -t 1987
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk17u-dev/pull/1987.diff
Webrev
Link to Webrev Comment