diff --git a/include/mimalloc-types.h b/include/mimalloc-types.h index 3b16b29c..ca72aceb 100644 --- a/include/mimalloc-types.h +++ b/include/mimalloc-types.h @@ -273,7 +273,7 @@ typedef struct mi_segment_s { // In debug mode there is a padding stucture at the end // of the blocks to check for buffer overflows. // ------------------------------------------------------ -#if defined(MI_PADDING) +#if (MI_PADDING) typedef struct mi_padding_s { uint32_t canary; // encoded block value to check validity of the padding (in case of heap block overflow) uint32_t delta; // padding bytes before the block. (mi_usable_size(p) - delta == exact allocated bytes) diff --git a/src/options.c b/src/options.c index 7cf90fa8..8387a562 100644 --- a/src/options.c +++ b/src/options.c @@ -77,7 +77,7 @@ static mi_option_desc_t options[_mi_option_last] = #endif { 100, UNINIT, MI_OPTION(reset_delay) }, // reset delay in milli-seconds { 0, UNINIT, MI_OPTION(use_numa_nodes) }, // 0 = use available numa nodes, otherwise use at most N nodes. - { 160, UNINIT, MI_OPTION(debug_extra_padding) }, // extra padding in bytes + { 0, UNINIT, MI_OPTION(debug_extra_padding) }, // extra padding in bytes { 100, UNINIT, MI_OPTION(os_tag) }, // only apple specific for now but might serve more or less related purpose { 16, UNINIT, MI_OPTION(max_errors) } // maximum errors that are output };