Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
handle race in RegexMatchCache is-ready and prepare sequence
Summary: The race is when two threads both do: ``` // hold shared lock if (!cache.isReadyToFindMatches(key)) { // drop shared lock // acquire exclusive lock cache.prepareToFindMatches(key); // transition exclusive to shared lock } ``` Differential Revision: D64149453 fbshipit-source-id: b8ed1c85a4d73f259c0b7aa4c2b5ed82d8474d6c
- Loading branch information