signals: Re-enable GC before running exit hooks on macOS #65123
All Vouch review confidence checks passed
Residual risk 0.10 = Change Risk (0.29) × (1 − Review Confidence (0.64)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.29 · 75 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 70%
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
Shallow Review Depth
shallow_review_depth
0.289
Diff Size
diff_size
0.259
Real PR Conversation Timeline
1 comments
"Review active on #65123"
general
weight: 0.35
maleadt
On a fatal signal the signal listener disables GC before redirecting thread 0 into the exit callback. The Unix callback re-enables it, but #57832 missed the Mach one, so on macOS
atexithooks and finalizers ran with GC off and their allocations were never reclaimed. For example, after SIGTERM an exit hook allocating 4 GB in 1 MB chunks peaked at about 2 GB RSS, against 244 MB on a normal exit.The new test fails on macOS without the fix and passes with it.
This touches the lines right above the function #65118 adds; whichever lands second needs a trivial rebase.
Assisted by: Fable 5.2, Opus 5.5