[jdk22u] RFR: 8324646: Avoid Class.forName in SecureRandom constructor

Oli Gillespie ogillespie at openjdk.org
Tue Mar 12 12:24:14 UTC 2024


On Tue, 12 Mar 2024 11:57:31 GMT, Oli Gillespie <ogillespie at openjdk.org> wrote:

> Hi all,
> 
> This pull request contains a backport of commit [8ef918d6](https://github.com/openjdk/jdk/commit/8ef918d6678437a5b351b172bb4cf144eeaa975f) from the [openjdk/jdk](https://git.openjdk.org/jdk) repository.
> 
> The commit being backported was authored by Oli Gillespie on 9 Feb 2024 and was reviewed by Aleksey Shipilev and Weijun Wang.
> 
> Thanks!

Benchmark results (`make test TEST=micro:org.openjdk.bench.java.security.SecureRandomBench`):


Before: 2833 ± 61 ns/op
 After: 2229 ± 157 ns/op


(note that this combines well with https://github.com/openjdk/jdk22u/pull/99 to bring the total down to ~100ns)

-------------

PR Comment: https://git.openjdk.org/jdk22u/pull/98#issuecomment-1991528182


More information about the jdk-updates-dev mailing list