зеркало из 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
|
#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:
|
||||||
|
|
Загрузка…
Ссылка в новой задаче