Re: RFR: 8259065: java.security.Provider should cache default constructors

2021-01-05 Thread Claes Redestad
On Mon, 4 Jan 2021 16:40:50 GMT, Claes Redestad wrote: > By caching default constructors used in > `java.security.Provider::newInstanceUtil` in a `ClassValue`, we can reduce > the overhead of allocating instances in a variety of places, e.g., > `MessageDigest::getInstance`, without compromisin

Re: RFR: 8259065: java.security.Provider should cache default constructors [v2]

2021-01-05 Thread Claes Redestad
> By caching default constructors used in > `java.security.Provider::newInstanceUtil` in a `ClassValue`, we can reduce > the overhead of allocating instances in a variety of places, e.g., > `MessageDigest::getInstance`, without compromising thread-safety or security. > > On the provided microbe

RFR: 8259065: java.security.Provider should cache default constructors

2021-01-05 Thread Claes Redestad
By caching default constructors used in `java.security.Provider::newInstanceUtil` in a `ClassValue`, we can reduce the overhead of allocating instances in a variety of places, e.g., `MessageDigest::getInstance`, without compromising thread-safety or security. On the provided microbenchmark `Mes