RFR: 8276660: Scalability bottleneck in java.security.Provider.getService() [v2]

Weijun Wang weijun at openjdk.java.net
Tue Nov 30 13:56:14 UTC 2021


On Tue, 30 Nov 2021 02:47:45 GMT, Valerie Peng <valeriep at openjdk.org> wrote:

>> src/java.base/share/classes/java/security/Provider.java line 979:
>> 
>>> 977:                 parseLegacy(sk, sv, OPType.REPLACE);
>>> 978:             }
>>> 979:         }
>> 
>> If you are going through all the entries, should we also clean up the legacy sets and restart?
>
> Do you mean simply wipe out the legacyMap and just do ADD instead of REPLACE?

Yes, since you are simply iterating through all the entries instead of only the changed ones.

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

PR: https://git.openjdk.java.net/jdk/pull/6513



More information about the security-dev mailing list