On Sat, 7 Dec 2024 06:41:41 GMT, Alan Bateman <al...@openjdk.org> wrote:
>> A regression was introduced by >> [JDK-8338383](https://bugs.openjdk.org/browse/JDK-8338383). Remove the >> forced static eager initialization. > > Would it be possible to create some follow-up issues to re-visit the class > initialisers and the coarseness of locking in this area? As noted in the bug, > the use of class locks is surprising. > > Also I'm not sure about saying "regression". I assume the only negative > impact of eager initialising AnchorCertificates is when using a custom > implementation. In that case, the default truststore is needlessly loaded, is > that right? @AlanBateman, sure, I can create some follow-up issues. Unfortunately, I do feel that this was to fix a regression. Using a custom trust store is quite common, I believe, and the previous change broke that functionality. ------------- PR Comment: https://git.openjdk.org/jdk/pull/22616#issuecomment-2532534690