RFR: 8345954: Revisit Class Initializers and Locking in X509TrustManagerImpl [v3]

Koushik Muthukrishnan Thirupattur duke at openjdk.org
Thu Jan 29 22:48:23 UTC 2026


> Refactor sun.security.provider.X509Factory cache access to avoid coarse-grained locking and reduce contention during certificate/CRL interning and parsing.
> 
> As per request in [the PR](https://github.com/openjdk/jdk/pull/22616#issuecomment-2524971845), re-visit "the initialisation and locking in this area, e.g. addToCache is a static synchronized method so very coarse locking."

Koushik Muthukrishnan Thirupattur has updated the pull request incrementally with one additional commit since the last revision:

  8345954: Removing synchronization on getfromcache

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/29181/files
  - new: https://git.openjdk.org/jdk/pull/29181/files/bf2ccdab..8fd1f70d

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=29181&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=29181&range=01-02

  Stats: 3 lines in 1 file changed: 0 ins; 2 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/29181.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/29181/head:pull/29181

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


More information about the security-dev mailing list