clean up guarded pages code

This commit is contained in:
daanx 2024-08-20 11:09:17 -07:00
parent 635cf7af6a
commit 8899a11c70
5 changed files with 46 additions and 38 deletions

View file

@ -72,8 +72,9 @@ terms of the MIT license. A copy of the license can be found in the file
#endif
#endif
// Use guard pages behind objects of a certain size
#define MI_DEBUG_GUARDED 1
// Use guard pages behind objects of a certain size (set by the MIMALLOC_DEBUG_GUARDED_MIN/MAX options)
// Padding should be disabled when using guard pages
// #define MI_DEBUG_GUARDED 1
#if defined(MI_DEBUG_GUARDED)
#define MI_PADDING 0
#endif