ds/pagemap: expose granularity information
This commit is contained in:
committed by
Nathaniel Filardo
parent
48340faa09
commit
2936467736
@@ -9,10 +9,11 @@ namespace snmalloc
|
||||
template<size_t GRANULARITY_BITS, typename T, typename PAL, bool has_bounds>
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user