From 2ef1eea3baef226ab1329913052cf75bcf8fc15b Mon Sep 17 00:00:00 2001 From: Istvan Haller Date: Thu, 5 Aug 2021 11:14:43 +0100 Subject: [PATCH] Improved the ability to extend GlobalState for custom Backend implementations --- src/backend/backend.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/backend/backend.h b/src/backend/backend.h index cab9944..f0311ae 100644 --- a/src/backend/backend.h +++ b/src/backend/backend.h @@ -11,7 +11,10 @@ namespace snmalloc * This class implements the standard backend for handling allocations. * It abstracts page table management and address space management. */ - template + template< + SNMALLOC_CONCEPT(ConceptPAL) PAL, + bool fixed_range, + typename PageMapEntry = MetaEntry> class BackendAllocator { // Size of local address space requests. Currently aimed at 2MiB large @@ -64,9 +67,10 @@ namespace snmalloc { friend BackendAllocator; + protected: AddressSpaceManager address_space; - FlatPagemap pagemap; + FlatPagemap pagemap; public: template