diff options
author | Daan Leijen <daan@microsoft.com> | 2021-10-02 11:13:00 -0700 |
---|---|---|
committer | Daan Leijen <daan@microsoft.com> | 2021-10-02 11:13:00 -0700 |
commit | e6b58052dae764bf5f1b79ffb65fbbc19596934a (patch) | |
tree | 68316647aae4ba38106a23ea330774a9b7acb044 /include/mimalloc-types.h | |
parent | 262022c1d1104874f304889a6ded878cd3d32cc6 (diff) |
add start offset to pages to reduce cache/page effects
Diffstat (limited to 'include/mimalloc-types.h')
-rw-r--r-- | include/mimalloc-types.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mimalloc-types.h b/include/mimalloc-types.h index b3f247b..2118dfb 100644 --- a/include/mimalloc-types.h +++ b/include/mimalloc-types.h @@ -145,6 +145,10 @@ terms of the MIT license. A copy of the license can be found in the file // Used as a special value to encode block sizes in 32 bits. #define MI_HUGE_BLOCK_SIZE ((uint32_t)MI_HUGE_OBJ_SIZE_MAX) +// blocks up to this size are always allocated aligned +#define MI_MAX_ALIGN_GUARANTEE (8*MI_MAX_ALIGN_SIZE) + + // The free lists use encoded next fields // (Only actually encodes when MI_ENCODED_FREELIST is defined.) |