-
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
8324646: Avoid Class.forName in SecureRandom constructor #2310
8324646: Avoid Class.forName in SecureRandom constructor #2310
Conversation
👋 Welcome back ogillespie! A progress list of the required criteria for merging this PR into |
/issue JDK-8324646 |
/issue JDK-8280970 |
@olivergillespie 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 no new commits pushed to the As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@phohensee, @shipilev) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
@olivergillespie This issue is referenced in the PR title - it will now be updated. |
@olivergillespie |
This backport pull request has now been updated with issue from the original commit. |
Webrevs
|
|
@olivergillespie 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! |
Waiting for next release to ask approval, since this is similar in nature to https://bugs.openjdk.org/browse/JDK-8324648. |
@olivergillespie 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! |
/approval 8280970 request Trivial dead code cleanup as a pre-requisite for JDK-8324646. Applies cleanly, no/low risk since it's dead code. /approval 8324646 request Performance improvement in |
@olivergillespie |
@olivergillespie |
@olivergillespie just glanced over this - I think I would have preferred separate backports of both issues because the cleanup seems independent of the other change. But I'm going to approve this nevertheless😄 |
Thanks, I wasn't sure which would be easier to review overall, but noted for next time! |
/integrate |
@olivergillespie |
/sponsor |
Going to push as commit 1ce0c63. |
@shipilev @olivergillespie Pushed as commit 1ce0c63. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Improve performance of SecureRandom constructor by backporting (both clean) two changes:
Note - because of the unused code still present in JDK17, there is actually an alternative fix which makes use of it, which is very simple:
This has the same performance benefits as making the two backports. But, it means 17 will be diverged from later versions, and I think the backported fix is cleaner overall.
Benchmark results (
make test TEST=micro:org.openjdk.bench.java.security.SecureRandomBench
):Progress
Issues
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk17u-dev.git pull/2310/head:pull/2310
$ git checkout pull/2310
Update a local copy of the PR:
$ git checkout pull/2310
$ git pull https://git.openjdk.org/jdk17u-dev.git pull/2310/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 2310
View PR using the GUI difftool:
$ git pr show -t 2310
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk17u-dev/pull/2310.diff
Webrev
Link to Webrev Comment