зеркало из https://github.com/microsoft/snmalloc.git
Remove GRANULARITY check
This check was not doing anything. It was from an earlier dependency ordering issue that has now been fixed.
This commit is contained in:
Родитель
164df40372
Коммит
ee9d899aa3
|
@ -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
|
||||
# define SNMALLOC_DEFAULT_PAGEMAP snmalloc::SuperslabMap
|
||||
#endif
|
||||
|
|
|
@ -189,8 +189,6 @@ namespace snmalloc
|
|||
}
|
||||
|
||||
public:
|
||||
static constexpr size_t GRANULARITY = 1 << GRANULARITY_BITS;
|
||||
|
||||
T get(void* p)
|
||||
{
|
||||
bool success;
|
||||
|
@ -245,10 +243,6 @@ namespace snmalloc
|
|||
static constexpr size_t ENTRIES = 1ULL << (COVERED_BITS + CONTENT_BITS);
|
||||
static constexpr size_t SHIFT = GRANULARITY_BITS;
|
||||
|
||||
public:
|
||||
static constexpr size_t GRANULARITY = 1 << GRANULARITY_BITS;
|
||||
|
||||
private:
|
||||
std::atomic<T> top[ENTRIES];
|
||||
|
||||
public:
|
||||
|
|
Загрузка…
Ссылка в новой задаче