supereight
|
An alternate implementation of se::MemoryPool that can help debug certain memory-related bugs. More...
#include <null_memory_pool.hpp>
Public Member Functions | |
~NullMemoryPool () | |
NodeT * | allocateRoot (const Eigen::Vector3i &coord, const int size) |
NodeT * | allocateNode (NodeT *const parent_ptr, const int child_idx, const typename NodeT::DataType &init_data) |
BlockT * | allocateBlock (NodeT *const parent_ptr, const int child_idx, const typename BlockT::DataType &init_data) |
void | deleteNode (NodeT *const node_ptr) |
void | deleteBlock (BlockT *const block_ptr) |
An alternate implementation of se::MemoryPool that can help debug certain memory-related bugs.
Since se::MemoryPool does its own memory management on top of large heap allocations, it can mask certain use-after-free or out-of-bounds-access bugs and make them undetectable to the address sanitizer (ASAN). If you suspect such issues, use se::NullMemoryPool instead.
|
inline |
|
inline |
|
inline |
|
inline |