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

8324648: Avoid NoSuchMethodError when instantiating NativePRNG #2308

Closed

Conversation

olivergillespie
Copy link
Contributor

@olivergillespie olivergillespie commented Mar 19, 2024

Hi all,

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

The commit being backported was authored by Oli Gillespie on 9 Feb 2024 and was reviewed by Aleksey Shipilev, Weijun Wang, Chen Liang and Valerie Peng.

I had to manually resolve the copyright change, but apart from that it's clean.

Benchmark results (make test TEST=micro:org.openjdk.bench.java.security.SecureRandomBench, using the benchmark from openjdk/jdk#17559):

Before: 2614 ± 127  ns/op
 After:  508 ± 7 ns/op

Thanks!


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • JDK-8324648 needs maintainer approval

Issue

  • JDK-8324648: Avoid NoSuchMethodError when instantiating NativePRNG (Enhancement - P4 - Approved)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk17u-dev.git pull/2308/head:pull/2308
$ git checkout pull/2308

Update a local copy of the PR:
$ git checkout pull/2308
$ git pull https://git.openjdk.org/jdk17u-dev.git pull/2308/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 2308

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk17u-dev/pull/2308.diff

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Mar 19, 2024

👋 Welcome back ogillespie! 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
Copy link

openjdk bot commented Mar 19, 2024

@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:

8324648: Avoid NoSuchMethodError when instantiating NativePRNG

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 8 new commits pushed to the master branch:

  • 44ade1d: 8315804: Open source several Swing JTabbedPane JTextArea JTextField tests
  • 0fa4d91: 8310201: Reduce verbose locale output in -XshowSettings launcher option
  • 95432a6: 8322008: Exclude some CDS tests from running with -Xshare:off
  • 9c89f1c: 8320945: problemlist tests failing on latest Windows 11 update
  • 09ad130: 8329134: Reconsider TLAB zapping
  • 33ab474: 8311666: Disabled tests in test/jdk/sun/java2d/marlin
  • 1b807f9: 8315559: Delay TempSymbol cleanup to avoid symbol table churn
  • 1ce0c63: 8324646: Avoid Class.forName in SecureRandom constructor

Please see this link for an up-to-date comparison between the source branch of this pull request and the master branch.
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.

As you do not have Committer status in this project an existing Committer must agree to sponsor your change.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk bot changed the title Backport 69b2674c6861fdb7d9f9cb39e07d50515c73e33a 8324648: Avoid NoSuchMethodError when instantiating NativePRNG Mar 19, 2024
@openjdk
Copy link

openjdk bot commented Mar 19, 2024

This backport pull request has now been updated with issue from the original commit.

@openjdk
Copy link

openjdk bot commented Mar 19, 2024

⚠️ @olivergillespie This change is now ready for you to apply for maintainer approval. This can be done directly in each associated issue or by using the /approval command.

@openjdk openjdk bot added the rfr Pull request is ready for review label Mar 19, 2024
@mlbridge
Copy link

mlbridge bot commented Mar 19, 2024

Webrevs

@olivergillespie
Copy link
Contributor Author

/approval request Performance improvement in SecureRandom., which I have seen on the hot path in real applications. Clean backport, low risk in my opinion (simple change to only one file). It has been in tip for over 4 weeks. Confirmed the benchmark results match tip (saves ~2100ns in SecureRandom constructor).

Note: GHA riscv64 cross-compile failing, unrelated to this change, seen in all other recent PRs.

@openjdk
Copy link

openjdk bot commented Mar 19, 2024

@olivergillespie
8324648: The approval request has been created successfully.

@openjdk openjdk bot added approval and removed approval labels Mar 19, 2024
@bridgekeeper
Copy link

bridgekeeper bot commented May 1, 2024

@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!

@olivergillespie
Copy link
Contributor Author

Waiting for next release for approval as requested.

@bridgekeeper
Copy link

bridgekeeper bot commented May 30, 2024

@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!

@openjdk openjdk bot added approval ready Pull request is ready to be integrated and removed approval labels Jun 3, 2024
@olivergillespie
Copy link
Contributor Author

/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Jun 4, 2024
@openjdk
Copy link

openjdk bot commented Jun 4, 2024

@olivergillespie
Your change (at version 410f39c) is now ready to be sponsored by a Committer.

@shipilev
Copy link
Member

shipilev commented Jun 4, 2024

/sponsor

@openjdk
Copy link

openjdk bot commented Jun 4, 2024

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

  • 44ade1d: 8315804: Open source several Swing JTabbedPane JTextArea JTextField tests
  • 0fa4d91: 8310201: Reduce verbose locale output in -XshowSettings launcher option
  • 95432a6: 8322008: Exclude some CDS tests from running with -Xshare:off
  • 9c89f1c: 8320945: problemlist tests failing on latest Windows 11 update
  • 09ad130: 8329134: Reconsider TLAB zapping
  • 33ab474: 8311666: Disabled tests in test/jdk/sun/java2d/marlin
  • 1b807f9: 8315559: Delay TempSymbol cleanup to avoid symbol table churn
  • 1ce0c63: 8324646: Avoid Class.forName in SecureRandom constructor

Your commit was automatically rebased without conflicts.

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

openjdk bot commented Jun 4, 2024

@shipilev @olivergillespie Pushed as commit b275236.

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

@olivergillespie olivergillespie deleted the backport-8324648-nsme branch June 4, 2024 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport clean integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

2 participants