BSD StrictProvenance minimum allocation size 16M

This will serve as the granularity with which we store authority
pointers in the (forthcoming) authmap, so 4K is almost surely too small.
16M is, admittedly, chosen out of a hat.
This commit is contained in:
Nathaniel Wesley Filardo 2022-12-10 11:11:37 +00:00 коммит произвёл Nathaniel Filardo
Родитель 7f3b59eaf9
Коммит 90ac1ba8d3
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -23,7 +23,8 @@ namespace snmalloc
static constexpr uint64_t pal_features =
AlignedAllocation | PALBSD<OS>::pal_features;
static SNMALLOC_CONSTINIT_STATIC size_t minimum_alloc_size = 4096;
static SNMALLOC_CONSTINIT_STATIC size_t minimum_alloc_size =
aal_supports<StrictProvenance> ? 1 << 24 : 4096;
/**
* Reserve memory at a specific alignment.