On Wed, 29 Sep 2021 10:45:41 GMT, Larry-N <[email protected]> wrote:

> This fix adds a cache of service provider classes to LoginContext (in 
> particular, it's a cache of LoginModules classes). The approach helps to 
> increase the performance of the LoginContext.login() method significantly, 
> especially in a multi-threading environment. Service Loader is used for 
> polling on Service Provider classes, without instantiating LoginModules 
> object if Service Provider name doesn't match record in .config file. The set 
> of service providers is cached for each Context Loader separately.
> This code passed successfully tier1 and tier2 tests on mac os.

This pull request has now been integrated.

Changeset: c0cda1db
Author:    Ilarion Nakonechnyy <[email protected]>
Committer: Weijun Wang <[email protected]>
URL:       
https://git.openjdk.java.net/jdk/commit/c0cda1db4fe74b86faa12136336bdf98c96758d2
Stats:     53 lines in 3 files changed: 26 ins; 17 del; 10 mod

8273026: Slow LoginContext.login() on multi threading application

Reviewed-by: weijun

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

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

Reply via email to