зеркало из https://github.com/microsoft/snmalloc.git
fix page size
Signed-off-by: Schrodinger ZHU Yifan <i@zhuyi.fan>
This commit is contained in:
Родитель
263543b47a
Коммит
dc00d96a7a
|
@ -29,8 +29,9 @@ namespace snmalloc
|
|||
*/
|
||||
static constexpr uint64_t pal_features = PALPOSIX::pal_features | Entropy;
|
||||
|
||||
static constexpr size_t page_size =
|
||||
Aal::aal_name == PowerPC ? 0x10000 : PALPOSIX::page_size;
|
||||
static constexpr size_t page_size = Aal::aal_name == PowerPC ?
|
||||
0x10000 :
|
||||
(Aal::aal_name == LoongArch ? 0x4000 : PALPOSIX::page_size);
|
||||
|
||||
/**
|
||||
* Linux requires an explicit no-reserve flag in `mmap` to guarantee lazy
|
||||
|
|
Загрузка…
Ссылка в новой задаче