← Back to Pull requests

re2: use new absl::Mutex method names and MutexLock(Mutex&) #665

Open
edwinchenloo opened this pull request with 16 lines diff across 2 files
View on GitHub
edwinchenloo edwinchenloo commented on Sep 30, 2026 18:24 UTC
Author

Follow-up to 972a15c ("re2: remove unnecessary & in MutexLock usage"), finishing the update for the mid-2025 Abseil API changes:

  • re2/dfa.cc: RWLocker now uses lock_shared/unlock_shared/lock/unlock instead of the deprecated ReaderLock/ReaderUnlock/WriterLock/WriterUnlock.

  • re2/regexp.cc: pass *ref_mutex() to absl::MutexLock (the reference constructor) instead of the pointer.
  • Starting with Abseil LTS 20260107, the old method names and the pointer MutexLock constructor are marked [[deprecated]], so building RE2 against current Abseil emits deprecation warnings in dfa.cc and regexp.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).

    Diff: 16 lines (+8 / -8) across 2 files Reviewer: dneto0 Review duration: 36512m
    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
    0.21
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.89 · 1 substantive comment(s)
    0.89
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    89%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    google-cla[bot] google-cla[bot] commented on Sep 30, 2026 18:24 UTC
    Bot

    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.

    dneto0 dneto0 commented on Oct 01, 2026 21:03 UTC
    Reviewer

    This is essentially the same as #644

    cc: @adonovan

    Reviewers
    Assignees
    edwinchenloo edwinchenloo
    Labels
    risk: low confidence: 89.1% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 21.4% (LOW) · Higher = larger blast radius
    21.4%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 89.1% · Lower = rushed or shallow review
    89.1%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 2.3% · Safe to merge
    2.3%
    Repository