[EASY][STF] host_launch_scope, parallel_for_scope: timing events are released under a policy, not an abort #11773
All Vouch review confidence checks passed
Residual risk 0.13 = Change Risk (0.33) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.33 · 149 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: 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.300
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #11773"
general
weight: 0.35
bernhardmgruber
[EASY]
Description
Same change as #11770 (stream_task) and the event part of #11748 (launch), applied to the two remaining copies of the pattern: the
SCOPE(exit)inhost_launch_scope.cuhand inparallel_for_scope.cuhthat destroys the two timing events of anoperator->*.Each
cuda_safe_call(cudaEventDestroy(...))becomescuda_try<cudaEventDestroy>underON_THROW(notify), one guard per release. A failing destroy leaks that event and is reported to stderr; the guard isnoexcept, so it cannot become a second exception; a leaked event is not worth ending the program over, which is whatabort()did; and one policy per release means a failure on the first destroy does not skip the second.The
SCOPE(success)timing blocks in both files are left to #11652, which replaces them withtask_statistics::record_task_timing.With this, all five copies of the timing-event release guard carry the same explicit policy; folding them into one RAII holder is the follow-up once #11652 lands.
Checklist
🤖 Generated with Claude Code