Skip to content

Streamline large synch blocks in list/TMCH CA loading - #3183

Open
gbrodman wants to merge 1 commit into
google:masterfrom
gbrodman:smarterLocking
Open

Streamline large synch blocks in list/TMCH CA loading#3183
gbrodman wants to merge 1 commit into
google:masterfrom
gbrodman:smarterLocking

Conversation

@gbrodman

@gbrodman gbrodman commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

For reserved/premium lists:
Use double-check locking so that subsequent calls to get the entire map of entries don't need to even check the locking object. This makes things quicker and removes lock-tracking overhead.

For TMCH CA:
we can just remove the synchronization block entirely. Everything inside of it is either constants (e.g. ROOT_CERTS) or a Guava loading cache (CRL_CACHE) which takes care of synchronization for us anyway.

this is taken from our self-scan D.4 14


This change is Reviewable

For reserved/premium lists:
Use double-check locking so that subsequent calls to get the entire map
of entries don't need to even check the locking object. This makes
things quicker and removes lock-tracking overhead.

For TMCH CA:
we can just remove the synchronization block entirely. Everything inside
of it is either constants (e.g. ROOT_CERTS) or a Guava loading cache
(CRL_CACHE) which takes care of synchronization for us anyway.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant