mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
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:
parent
d278c26c0e
commit
1909cfb346
4 changed files with 18 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue