diff --git a/src/snmalloc/pal/pal_linux.h b/src/snmalloc/pal/pal_linux.h index 5e1289a1..beb06d5b 100644 --- a/src/snmalloc/pal/pal_linux.h +++ b/src/snmalloc/pal/pal_linux.h @@ -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