mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
define MI_MAX_ALLOC_SIZE as PTRDIFF_MAX (related to #877)
This commit is contained in:
parent
06b510c42d
commit
5050b63038
2 changed files with 3 additions and 1 deletions
|
@ -195,6 +195,8 @@ typedef int32_t mi_ssize_t;
|
|||
// Alignments over MI_BLOCK_ALIGNMENT_MAX are allocated in dedicated huge page segments
|
||||
#define MI_BLOCK_ALIGNMENT_MAX (MI_SEGMENT_SIZE >> 1)
|
||||
|
||||
// we never allocate more than PTRDIFF_MAX (see also <https://sourceware.org/ml/libc-announce/2019/msg00001.html>)
|
||||
#define MI_MAX_ALLOC_SIZE PTRDIFF_MAX
|
||||
|
||||
// ------------------------------------------------------
|
||||
// Mimalloc pages contain allocated blocks
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue