@@ -1015,7 +1015,7 @@ void DFA::RunWorkqOnByte(Workq* oldq, Workq* newq,
10151015DFA::State* DFA::RunStateOnByteUnlocked (State* state, int c) {
10161016 // Keep only one RunStateOnByte going
10171017 // even if the DFA is being run by multiple threads.
1018- absl::MutexLock l (mutex_);
1018+ absl::MutexLock l (& mutex_);
10191019 return RunStateOnByte (state, c);
10201020}
10211021
@@ -1267,7 +1267,7 @@ DFA::StateSaver::~StateSaver() {
12671267DFA::State* DFA::StateSaver::Restore () {
12681268 if (is_special_)
12691269 return special_;
1270- absl::MutexLock l (dfa_->mutex_ );
1270+ absl::MutexLock l (& dfa_->mutex_ );
12711271 State* s = dfa_->CachedState (inst_, ninst_, flag_);
12721272 if (s == NULL )
12731273 ABSL_LOG (DFATAL) << " StateSaver failed to restore state." ;
@@ -1730,7 +1730,7 @@ bool DFA::AnalyzeSearchHelper(SearchParams* params, StartInfo* info,
17301730 if (start != NULL )
17311731 return true ;
17321732
1733- absl::MutexLock l (mutex_);
1733+ absl::MutexLock l (& mutex_);
17341734 start = info->start .load (std::memory_order_relaxed);
17351735 if (start != NULL )
17361736 return true ;
@@ -2050,7 +2050,7 @@ bool DFA::PossibleMatchRange(std::string* min, std::string* max, int maxlen) {
20502050 // Build minimum prefix.
20512051 State* s = params.start ;
20522052 min->clear ();
2053- absl::MutexLock lock (mutex_);
2053+ absl::MutexLock lock (& mutex_);
20542054 for (int i = 0 ; i < maxlen; i++) {
20552055 if (previously_visited_states[s] > kMaxEltRepetitions )
20562056 break ;
0 commit comments