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

Valerie Peng valeriep at openjdk.org
Fri Aug 19 23:34:44 UTC 2022


On Fri, 19 Aug 2022 08:40:39 GMT, Josef Eisl <jeisl at openjdk.org> wrote:

>> Valerie Peng has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Updated to address review comments.
>
> src/java.base/share/classes/java/security/Provider.java line 1276:
> 
>> 1274:         }
>> 1275:         if (serviceSet == null) {
>> 1276:             ensureLegacyParsed();
> 
> Hi @valeriepeng! I believe that with this change, `getServices()` will return invalid legacy services. Before we called `ensureLegacyParsed()`, which eventually called `removeInvalidServices()`. In `getService(String, String)`, we are now explicitly checking for `isValid()` to keep the old behavior. Shouldn't we do something similar here as well? Am I missing something or is this an intended change?

Hmm, could be. Let me check into it and I will have to file a separate bug to address this since the changes have already been integrated. Thanks for the comments.

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

PR: https://git.openjdk.org/jdk/pull/6513



More information about the security-dev mailing list