From dad3be3c645a5e8844df50c38fc9c50d0cc88d6a Mon Sep 17 00:00:00 2001 From: daan Date: Thu, 30 Apr 2020 17:21:36 -0700 Subject: [PATCH] update comments --- include/mimalloc-types.h | 2 +- src/arena.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/mimalloc-types.h b/include/mimalloc-types.h index a2c3fa9a..12a420c2 100644 --- a/include/mimalloc-types.h +++ b/include/mimalloc-types.h @@ -100,7 +100,7 @@ terms of the MIT license. A copy of the license can be found in the file // Main tuning parameters for segment and page sizes // Sizes for 64-bit, divide by two for 32-bit #define MI_SEGMENT_SLICE_SHIFT (13 + MI_INTPTR_SHIFT) // 64kb -#define MI_SEGMENT_SHIFT ( 8 + MI_SEGMENT_SLICE_SHIFT) // 8mb +#define MI_SEGMENT_SHIFT ( 8 + MI_SEGMENT_SLICE_SHIFT) // 16mb #define MI_SMALL_PAGE_SHIFT (MI_SEGMENT_SLICE_SHIFT) // 64kb #define MI_MEDIUM_PAGE_SHIFT ( 3 + MI_SMALL_PAGE_SHIFT) // 512kb diff --git a/src/arena.c b/src/arena.c index 99eb766c..77616580 100644 --- a/src/arena.c +++ b/src/arena.c @@ -127,7 +127,7 @@ static bool mi_arena_alloc(mi_arena_t* arena, size_t blocks, mi_bitmap_index_t* /* ----------------------------------------------------------- Arena cache ----------------------------------------------------------- */ -#define MI_CACHE_MAX (128) // ~4GiB +#define MI_CACHE_MAX (128) #define MI_MAX_NUMA (16) #define MI_SLOT_IN_USE ((void*)1)