From 74018a1c91333dcf1c4f747427174be4c082bc10 Mon Sep 17 00:00:00 2001 From: Matthew Parkinson Date: Wed, 16 Jan 2019 13:34:28 +0000 Subject: [PATCH] Correct PageMap public API --- src/mem/pagemap.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mem/pagemap.h b/src/mem/pagemap.h index d615e10..20b01e2 100644 --- a/src/mem/pagemap.h +++ b/src/mem/pagemap.h @@ -155,9 +155,6 @@ namespace snmalloc return &(leaf_ix.first->values[leaf_ix.second]); } - public: - static constexpr size_t GRANULARITY = 1 << GRANULARITY_BITS; - /** * Returns the index of a pagemap entry within a given page. This is used * in code that propagates changes to the pagemap elsewhere. @@ -186,6 +183,9 @@ namespace snmalloc return get_addr(p, success); } + public: + static constexpr size_t GRANULARITY = 1 << GRANULARITY_BITS; + T get(void* p) { bool success;