From 35c94229137fc5184d64b81e3d55a4c279e14ebe Mon Sep 17 00:00:00 2001 From: Istvan Haller Date: Mon, 23 Aug 2021 19:19:58 +0100 Subject: [PATCH] Comment fixes --- src/mem/localalloc.h | 2 +- src/mem/pool.h | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) 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 {