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;