From 293646773624cd8df501b3ac1469dceee7a4e9ee Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Sat, 10 Dec 2022 10:53:42 +0000 Subject: [PATCH] ds/pagemap: expose granularity information --- src/snmalloc/ds/pagemap.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/snmalloc/ds/pagemap.h b/src/snmalloc/ds/pagemap.h index f566771..d7115cb 100644 --- a/src/snmalloc/ds/pagemap.h +++ b/src/snmalloc/ds/pagemap.h @@ -9,10 +9,11 @@ namespace snmalloc template class FlatPagemap { - private: + public: static constexpr size_t SHIFT = GRANULARITY_BITS; static constexpr size_t GRANULARITY = bits::one_at_bit(GRANULARITY_BITS); + private: /** * Before init is called will contain a single entry * that is the default value. This is needed so that