Correct PageMap public API

This commit is contained in:
Matthew Parkinson
2019-01-16 13:34:28 +00:00
parent e2190f376f
commit 74018a1c91

View File

@@ -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<true>(p, success);
}
public:
static constexpr size_t GRANULARITY = 1 << GRANULARITY_BITS;
T get(void* p)
{
bool success;