Skip to content

Remove deprecated MemoryStrategy and AllocatorMemoryStrategy - #3444

Merged
christophebedard merged 1 commit into
rollingfrom
christophebedard/remove-memory-strategy
Nov 28, 2026
Merged

christophebedard merged 1 commit into
rollingfrom
christophebedard/remove-memory-strategy

Conversation

@christophebedard

Copy link
Copy Markdown
Member

Description

MemoryStrategy and AllocatorMemoryStrategy have been deprecated since #3136 (Lyrical), as the executors do not use them anymore, with a note to remove them after Lyrical. Also remove their tests, which were marked for removal after Lyrical, and the rclcpp.hpp documentation entries for them and for rclcpp/memory_strategies.hpp, which was already removed.

Is this user-facing behavior change?

Yes: MemoryStrategy and AllocatorMemoryStrategy are removed, along with the rclcpp/memory_strategy.hpp and rclcpp/strategies/allocator_memory_strategy.hpp headers. Nothing uses them anymore, so there is no replacement.

Did you use Generative AI?

Claude Opus 5.5 to find this deprecated code and remove it.

Additional Information

`MemoryStrategy` and `AllocatorMemoryStrategy` have been deprecated
since #3136 (Lyrical), as the
executors do not use them anymore, with a note to remove them after
Lyrical. Also remove their tests, which were marked for removal after
Lyrical, and the `rclcpp.hpp` documentation entries for them and for
`rclcpp/memory_strategies.hpp`, which was already removed.

Signed-off-by: Christophe Bedard <[email protected]>
@github-actions

Copy link
Copy Markdown

ABI Compliance Check

❌ Verdict: incompatible

Library Verdict Summary
libcomponent_manager.so ✅ compatible No ABI changes detected.
librclcpp.so ❌ incompatible ABI-incompatible changes detected.
librclcpp_action.so ✅ compatible No ABI changes detected.
librclcpp_lifecycle.so ✅ compatible No ABI changes detected.
✅ libcomponent_manager.so — full abidiff report

Compared:

  • Base: lib-base/libcomponent_manager.so
  • Head: lib-pr/libcomponent_manager.so @ e5e5eee
(empty report — no differences printed by abidiff)
❌ librclcpp.so — full abidiff report

Compared:

  • Base: lib-base/librclcpp.so
  • Head: lib-pr/librclcpp.so @ e5e5eee
Functions changes summary: 10 Removed (2 filtered out), 0 Changed, 0 Added functions
Variables changes summary: 0 Removed, 0 Changed, 0 Added variable

10 Removed functions:

  [D] 'method rclcpp::ClientBase::SharedPtr rclcpp::memory_strategy::MemoryStrategy::get_client_by_handle(const std::shared_ptr<constrcl_client_s>&, const rclcpp::memory_strategy::MemoryStrategy::WeakCallbackGroupsToNodesMap&)'    {_ZN6rclcpp15memory_strategy14MemoryStrategy20get_client_by_handleERKSt10shared_ptrIK12rcl_client_sERKSt3mapISt8weak_ptrINS_13CallbackGroupEES9_INS_15node_interfaces17NodeBaseInterfaceEESt10owner_lessISB_ESaISt4pairIKSB_SE_EEE}
  [D] 'method rclcpp::CallbackGroup::SharedPtr rclcpp::memory_strategy::MemoryStrategy::get_group_by_client(const rclcpp::ClientBase::SharedPtr&, const rclcpp::memory_strategy::MemoryStrategy::WeakCallbackGroupsToNodesMap&)'    {_ZN6rclcpp15memory_strategy14MemoryStrategy19get_group_by_clientERKSt10shared_ptrINS_10ClientBaseEERKSt3mapISt8weak_ptrINS_13CallbackGroupEES8_INS_15node_interfaces17NodeBaseInterfaceEESt10owner_lessISA_ESaISt4pairIKSA_SD_EEE}
  [D] 'method rclcpp::CallbackGroup::SharedPtr rclcpp::memory_strategy::MemoryStrategy::get_group_by_service(const rclcpp::ServiceBase::SharedPtr&, const rclcpp::memory_strategy::MemoryStrategy::WeakCallbackGroupsToNodesMap&)'    {_ZN6rclcpp15memory_strategy14MemoryStrategy20get_group_by_serviceERKSt10shared_ptrINS_11ServiceBaseEERKSt3mapISt8weak_ptrINS_13CallbackGroupEES8_INS_15node_interfaces17NodeBaseInterfaceEESt10owner_lessISA_ESaISt4pairIKSA_SD_EEE}
  [D] 'method rclcpp::CallbackGroup::SharedPtr rclcpp::memory_strategy::MemoryStrategy::get_group_by_subscription(const rclcpp::SubscriptionBase::SharedPtr&, const rclcpp::memory_strategy::MemoryStrategy::WeakCallbackGroupsToNodesMap&)'    {_ZN6rclcpp15memory_strategy14MemoryStrategy25get_group_by_subscriptionERKSt10shared_ptrINS_16SubscriptionBaseEERKSt3mapISt8weak_ptrINS_13CallbackGroupEES8_INS_15node_interfaces17NodeBaseInterfaceEESt10owner_lessISA_ESaISt4pairIKSA_SD_EEE}
  [D] 'method rclcpp::CallbackGroup::SharedPtr rclcpp::memory_strategy::MemoryStrategy::get_group_by_timer(const rclcpp::TimerBase::SharedPtr&, const rclcpp::memory_strategy::MemoryStrategy::WeakCallbackGroupsToNodesMap&)'    {_ZN6rclcpp15memory_strategy14MemoryStrategy18get_group_by_timerERKSt10shared_ptrINS_9TimerBaseEERKSt3mapISt8weak_ptrINS_13CallbackGroupEES8_INS_15node_interfaces17NodeBaseInterfaceEESt10owner_lessISA_ESaISt4pairIKSA_SD_EEE}
  [D] 'method rclcpp::CallbackGroup::SharedPtr rclcpp::memory_strategy::MemoryStrategy::get_group_by_waitable(const rclcpp::Waitable::SharedPtr&, const rclcpp::memory_strategy::MemoryStrategy::WeakCallbackGroupsToNodesMap&)'    {_ZN6rclcpp15memory_strategy14MemoryStrategy21get_group_by_waitableERKSt10shared_ptrINS_8WaitableEERKSt3mapISt8weak_ptrINS_13CallbackGroupEES8_INS_15node_interfaces17NodeBaseInterfaceEESt10owner_lessISA_ESaISt4pairIKSA_SD_EEE}
  [D] 'method rclcpp::node_interfaces::NodeBaseInterface::SharedPtr rclcpp::memory_strategy::MemoryStrategy::get_node_by_group(const rclcpp::CallbackGroup::SharedPtr&, const rclcpp::memory_strategy::MemoryStrategy::WeakCallbackGroupsToNodesMap&)'    {_ZN6rclcpp15memory_strategy14MemoryStrategy17get_node_by_groupERKSt10shared_ptrINS_13CallbackGroupEERKSt3mapISt8weak_ptrIS3_ES8_INS_15node_interfaces17NodeBaseInterfaceEESt10owner_lessIS9_ESaISt4pairIKS9_SC_EEE}
  [D] 'method rclcpp::ServiceBase::SharedPtr rclcpp::memory_strategy::MemoryStrategy::get_service_by_handle(const std::shared_ptr<constrcl_service_s>&, const rclcpp::memory_strategy::MemoryStrategy::WeakCallbackGroupsToNodesMap&)'    {_ZN6rclcpp15memory_strategy14MemoryStrategy21get_service_by_handleERKSt10shared_ptrIK13rcl_service_sERKSt3mapISt8weak_ptrINS_13CallbackGroupEES9_INS_15node_interfaces17NodeBaseInterfaceEESt10owner_lessISB_ESaISt4pairIKSB_SE_EEE}
  [D] 'method rclcpp::SubscriptionBase::SharedPtr rclcpp::memory_strategy::MemoryStrategy::get_subscription_by_handle(const std::shared_ptr<constrcl_subscription_s>&, const rclcpp::memory_strategy::MemoryStrategy::WeakCallbackGroupsToNodesMap&)'    {_ZN6rclcpp15memory_strategy14MemoryStrategy26get_subscription_by_handleERKSt10shared_ptrIK18rcl_subscription_sERKSt3mapISt8weak_ptrINS_13CallbackGroupEES9_INS_15node_interfaces17NodeBaseInterfaceEESt10owner_lessISB_ESaISt4pairIKSB_SE_EEE}
  [D] 'method rclcpp::TimerBase::SharedPtr rclcpp::memory_strategy::MemoryStrategy::get_timer_by_handle(const std::shared_ptr<constrcl_timer_s>&, const rclcpp::memory_strategy::MemoryStrategy::WeakCallbackGroupsToNodesMap&)'    {_ZN6rclcpp15memory_strategy14MemoryStrategy19get_timer_by_handleERKSt10shared_ptrIK11rcl_timer_sERKSt3mapISt8weak_ptrINS_13CallbackGroupEES9_INS_15node_interfaces17NodeBaseInterfaceEESt10owner_lessISB_ESaISt4pairIKSB_SE_EEE}


✅ librclcpp_action.so — full abidiff report

Compared:

  • Base: lib-base/librclcpp_action.so
  • Head: lib-pr/librclcpp_action.so @ e5e5eee
(empty report — no differences printed by abidiff)
✅ librclcpp_lifecycle.so — full abidiff report

Compared:

  • Base: lib-base/librclcpp_lifecycle.so
  • Head: lib-pr/librclcpp_lifecycle.so @ e5e5eee
(empty report — no differences printed by abidiff)

Updated for commit e5e5eee · check run · suppressions: /home/runner/work/_temp/ros2-abi-suppressions.txt

@ahcorde

ahcorde commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Pulls: #3444
Gist: https://gist.githubusercontent.com/ahcorde/62e7ae1c27a5fde1f69b23e46f832f9b/raw/b762fc52e50935cd5694aedbfd06a7edb62298f0/ros2.repos
BUILD args: --packages-above-and-dependencies rclcpp
TEST args: --packages-above rclcpp
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/21338

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@christophebedard christophebedard self-assigned this Nov 27, 2026
@christophebedard
christophebedard merged commit 3dbfe9d into rolling Nov 28, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants