Remove deprecated conversion of C++ allocators to rcl allocators #3445
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.37) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 134 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.293
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #3445"
general
weight: 0.35
jmachowinski
Description
Converting a C++ allocator to an rcl allocator with the generic
allocator::get_rcl_allocator()and theretyped_*()functions has been deprecated since #3058 (Lyrical), since it is not valid: the size on deallocate cannot be determined. Allocators other thanstd::allocator<void>now need to definercl_allocator_t get_rcl_allocator(), which is enforced with astatic_assert.Is this user-facing behavior change?
Yes:
rclcpp::allocator::retyped_allocate(),retyped_zero_allocate(),retyped_deallocate(),retyped_reallocate(), and the genericrclcpp::allocator::get_rcl_allocator()overload are removed. Allocators other thanstd::allocator<void>used with publishers, subscriptions, or message memory strategies must definercl_allocator_t get_rcl_allocator(), otherwise compilation fails.Did you use Generative AI?
Claude Opus 5.5 to find this deprecated code and remove it.
Additional Information
Requires ros2/demos#823, which defines
get_rcl_allocator()for the custom allocator tutorial, so merge that one first.