summaryrefslogtreecommitdiff
path: root/include/mimalloc-types.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mimalloc-types.h')
-rw-r--r--include/mimalloc-types.h4
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.)