refine mi_os_good_alloc_size and use it for huge pages (to ensure realloc is bounded as in #153

This commit is contained in:
Daan Leijen 2019-09-10 13:26:51 -07:00
parent d278c26c0e
commit 1909cfb346
4 changed files with 18 additions and 12 deletions

View file

@ -68,6 +68,9 @@ terms of the MIT license. A copy of the license can be found in the file
#define MI_INTPTR_SIZE (1<<MI_INTPTR_SHIFT)
#define KiB ((size_t)1024)
#define MiB (KiB*KiB)
#define GiB (MiB*KiB)
// ------------------------------------------------------
// Main internal data-structures