Ensure that all heap allocations use the marl::Allocator #131
Open
Description
marl::Allocator
is the user-implementable interface that should be used for all marl heap allocations.
At the time of writing there are many places where we use std
containers with the default allocator, which is clearly bypassing the marl::Allocator
.
We should ensure that all allocations go through the provided marl::Allocator
.
Metadata
Assignees
Labels
No labels
Activity
Wrap all stl containers with a marl::StlAllocator
Wrap all stl containers with a marl::StlAllocator
Wrap all stl containers with a marl::StlAllocator
Wrap all stl containers with a marl::StlAllocator
Wrap all stl containers with a marl::StlAllocator
benvanik commentedon Jul 10, 2020
RE shared_ptr; this may be useful: https://github.com/google/iree/blob/main/iree/base/ref_ptr.h (thread-safe intrusive pointer with support for type-specific custom deleters to make pooling easier)
AWoloszyn commentedon Dec 17, 2022
This pull request also replaces std::function with std::packaged_task. std::packaged_task can take an allocator which will help with some of this as well.
#216