Rename TypeAlloc to Pool

Minor refactor to clarify purpose of the pool.
This commit is contained in:
Matthew Parkinson
2019-01-18 09:53:14 +00:00
parent 4748f25e57
commit 806f7e47cc
4 changed files with 32 additions and 20 deletions

View File

@@ -16,10 +16,10 @@
#include "largealloc.h"
#include "mediumslab.h"
#include "pagemap.h"
#include "pooled.h"
#include "remoteallocator.h"
#include "sizeclasstable.h"
#include "slab.h"
#include "typeallocated.h"
#include <array>
@@ -165,7 +165,7 @@ namespace snmalloc
class PageMap = SNMALLOC_DEFAULT_PAGEMAP,
bool IsQueueInline = true>
class Allocator
: public TypeAllocated<Allocator<MemoryProvider, PageMap, IsQueueInline>>
: public Pooled<Allocator<MemoryProvider, PageMap, IsQueueInline>>
{
LargeAlloc<MemoryProvider> large_allocator;
PageMap page_map;
@@ -627,7 +627,7 @@ namespace snmalloc
}
template<class A, class MemProvider>
friend class TypeAlloc;
friend class Pool;
public:
Allocator(