NFC: Make config objects expose their PoolState types
Just introduce the alias publicly so we can grab it when checking concepts
This commit is contained in:
committed by
Nathaniel Wesley Filardo
parent
3c14a7ddf1
commit
2e1658fc53
@@ -14,11 +14,14 @@ namespace snmalloc
|
||||
template<SNMALLOC_CONCEPT(ConceptPAL) PAL>
|
||||
class FixedGlobals final : public BackendAllocator<PAL, true>
|
||||
{
|
||||
public:
|
||||
using GlobalPoolState = PoolState<CoreAllocator<FixedGlobals>>;
|
||||
|
||||
private:
|
||||
using Backend = BackendAllocator<PAL, true>;
|
||||
inline static ChunkAllocatorState slab_allocator_state;
|
||||
|
||||
inline static PoolState<CoreAllocator<FixedGlobals>> alloc_pool;
|
||||
inline static GlobalPoolState alloc_pool;
|
||||
|
||||
public:
|
||||
static ChunkAllocatorState&
|
||||
@@ -27,7 +30,7 @@ namespace snmalloc
|
||||
return slab_allocator_state;
|
||||
}
|
||||
|
||||
static PoolState<CoreAllocator<FixedGlobals>>& pool()
|
||||
static GlobalPoolState& pool()
|
||||
{
|
||||
return alloc_pool;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user