re2: use new absl::Mutex method names and MutexLock(Mutex&) #665
All Vouch review confidence checks passed
Residual risk 0.02 = Change Risk (0.21) × (1 − Review Confidence (0.89)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.21 · 16 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.89 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.170
Real PR Conversation Timeline
3 items
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.
This is essentially the same as #644
cc: @adonovan
dneto0
edwinchenloo
Follow-up to 972a15c ("re2: remove unnecessary & in MutexLock usage"), finishing the update for the mid-2025 Abseil API changes:
re2/dfa.cc:RWLockernow useslock_shared/unlock_shared/lock/unlockinstead of the deprecatedReaderLock/ReaderUnlock/WriterLock/WriterUnlock.re2/regexp.cc: pass*ref_mutex()toabsl::MutexLock(the reference constructor) instead of the pointer.Starting with Abseil LTS 20260107, the old method names and the pointer
MutexLockconstructor are marked[[deprecated]], so building RE2 against current Abseil emits deprecation warnings indfa.ccandregexp.cc(and fails outright under-Werror). This change removes those warnings. It doesn't raise the minimum Abseil version: 972a15c already requires 20250814, which provides both the old and new APIs.Tested with
bazel test //:all(20/20 pass).