diff --git a/src/mem/localalloc.h b/src/mem/localalloc.h index 0ae59f1..19a5b9c 100644 --- a/src/mem/localalloc.h +++ b/src/mem/localalloc.h @@ -345,7 +345,7 @@ namespace snmalloc public: constexpr LocalAllocator() = default; LocalAllocator(const LocalAllocator&) = delete; - LocalAllocator& operator= (const LocalAllocator&) = delete; + LocalAllocator& operator=(const LocalAllocator&) = delete; /** * Initialise the allocator. For allocators that support local diff --git a/src/mem/pool.h b/src/mem/pool.h index 49e3451..2b0c177 100644 --- a/src/mem/pool.h +++ b/src/mem/pool.h @@ -9,7 +9,7 @@ namespace snmalloc { /** - * Pool of Allocators. + * Pool of a particular type of object. * * This pool will never return objects to the OS. It maintains a list of all * objects ever allocated that can be iterated (not concurrency safe). Pooled @@ -112,6 +112,11 @@ namespace snmalloc } }; + /** + * Collection of static wrappers for the allocator pool. + * The PoolState for this particular pool type is owned by the + * SharedStateHandle, so there is no object state in this class. + */ template class AllocPool {