A not-so-quick introduction to the C++ allocator model

The interaction between trivial relocatability and Bloomberg’s polymorphic allocator model, PMR, has sparked interest in recent paper submissions. PMR allows for the creation of local memory arenas that can be associated with a specific object upon creation, ensuring that all allocations related to that object come from the same memory arena. However, the PMR has some growing pains when it comes to value-semantic operations, and its lack of such semantics can cause issues, such as heap corruption, when trying to apply value-semantic operations to PMR objects. Nonetheless, the PMR model is important for classical OOP objects.

https://quuxplusone.github.io/blog/2023/06/02/not-so-quick-pmr/

To top