-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
let ServiceData::trimRegexCache avoid exclusive lock
Summary: Currently, `ServiceData::trimRegexCache` always takes an exclusive lock and invokes `RegexMatchCache::purge`, even if there would be nothing to purge (i.e., all regexes in the cache are fresh / non-stale). It is possible to avoid tail risk of taking an exclusive lock by prefacing with `RegexMatchCache::hasItemsToPurge`, done under an upgrade lock. Reviewed By: mdas7 Differential Revision: D66730361 fbshipit-source-id: 6a8368ba701ef35c1f347e8a61669fb9392825b0
- Loading branch information
1 parent
dea6ec5
commit 9fd84b4
Showing
5 changed files
with
19 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters