This check was not doing anything.  It was from an earlier dependency
ordering issue that has now been fixed.
This commit is contained in:
Matthew Parkinson 2019-01-17 14:38:14 +00:00
Родитель 164df40372
Коммит ee9d899aa3
2 изменённых файлов: 0 добавлений и 10 удалений

Просмотреть файл

@ -140,10 +140,6 @@ namespace snmalloc
} }
}; };
static_assert(
SUPERSLAB_SIZE == SuperslabPagemap::GRANULARITY,
"The superslab size should be the same as the pagemap granularity");
#ifndef SNMALLOC_DEFAULT_PAGEMAP #ifndef SNMALLOC_DEFAULT_PAGEMAP
# define SNMALLOC_DEFAULT_PAGEMAP snmalloc::SuperslabMap # define SNMALLOC_DEFAULT_PAGEMAP snmalloc::SuperslabMap
#endif #endif

Просмотреть файл

@ -189,8 +189,6 @@ namespace snmalloc
} }
public: public:
static constexpr size_t GRANULARITY = 1 << GRANULARITY_BITS;
T get(void* p) T get(void* p)
{ {
bool success; bool success;
@ -245,10 +243,6 @@ namespace snmalloc
static constexpr size_t ENTRIES = 1ULL << (COVERED_BITS + CONTENT_BITS); static constexpr size_t ENTRIES = 1ULL << (COVERED_BITS + CONTENT_BITS);
static constexpr size_t SHIFT = GRANULARITY_BITS; static constexpr size_t SHIFT = GRANULARITY_BITS;
public:
static constexpr size_t GRANULARITY = 1 << GRANULARITY_BITS;
private:
std::atomic<T> top[ENTRIES]; std::atomic<T> top[ENTRIES];
public: public: