← Back to Pull requests

gc write-barrier improvements #64913

Merged
vtjnash merged 17 files (237 lines) on Nov 13, 2026 23:24 UTC
View on GitHub
vtjnash vtjnash commented on Nov 12, 2026 13:22 UTC
Author

Following up on #64809, which made our GC wb implementation inconsistent, this restores consistency and then optimizes them back to being even better than they were before this (back to what they were before the extra image-generation check was added to them).

  • gc: Apply the image-object barrier rule to every write barrier

  • This applies the wb optimization from #64809 to all barriers.
  • codegen: Test the write barrier's child bits on the AND of the child tags

  • This makes testing multi-wb slightly more efficient (shaves a trivial amount off the sysimage).
  • gc: Give permanently allocated objects the GC_IN_IMAGE bit

  • This makes permalloc objects (e.g. nothing) avoid triggering the wb against image objects. The bit now means "permanent" rather than "in image". The in-image query was now handled by the image tree instead.
  • gc: Rearrange the image header bits so the barrier is one comparison

  • This makes the barriers more efficient, shaving about 0.4% off the sysimage size.

    Diff: 237 lines (+121 / -116) across 17 files Reviewer: JeffBezanson Review duration: 2042m
    All Vouch review confidence checks passed
    Residual risk 0.35 = Change Risk (0.64) × (1 − Review Confidence (0.45)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.64 · 237 lines diff across 17 files
    0.64
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.00 · 1 substantive comment(s)
    0.00
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    44%
    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
    Shallow Review Depth shallow_review_depth
    0.350
    Diff Size diff_size
    0.327
    Mass File Touch mass_file_touch
    0.080
    Real PR Conversation Timeline
    2 items
    JeffBezanson JeffBezanson approved these changes on Nov 13, 2026 23:16 UTC
    Approved Reviewer

    Approved these changes.

    Reviewers
    Assignees
    vtjnash vtjnash
    Labels
    risk: medium confidence: 44.8% 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: 64.3% (MEDIUM) · Higher = larger blast radius
    64.3%
    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: 44.8% · Lower = rushed or shallow review
    44.8%
    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: 35.5% · Moderate risk
    35.5%