diff options
author | Jason Evans <jasone@canonware.com> | 2016-11-22 10:58:58 -0800 |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2016-11-22 11:02:28 -0800 |
commit | fc11f3cb8443c029f54bf9ba21574b0f61996dd2 (patch) | |
tree | c24b19971ed7da093ba47542bf3e4b49d9ab4fb8 /include | |
parent | 949a27fc329e6a55a94857a401765d017f13f8ff (diff) | |
download | jemalloc-fc11f3cb8443c029f54bf9ba21574b0f61996dd2.tar.gz |
Enable overriding JEMALLOC_{ALLOC,FREE}_JUNK.
This resolves #509.
Diffstat (limited to 'include')
-rw-r--r-- | include/jemalloc/internal/util.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/jemalloc/internal/util.h b/include/jemalloc/internal/util.h index aee00d6..4b56d65 100644 --- a/include/jemalloc/internal/util.h +++ b/include/jemalloc/internal/util.h @@ -41,8 +41,12 @@ #define MALLOC_PRINTF_BUFSIZE 4096 /* Junk fill patterns. */ -#define JEMALLOC_ALLOC_JUNK ((uint8_t)0xa5) -#define JEMALLOC_FREE_JUNK ((uint8_t)0x5a) +#ifndef JEMALLOC_ALLOC_JUNK +# define JEMALLOC_ALLOC_JUNK ((uint8_t)0xa5) +#endif +#ifndef JEMALLOC_FREE_JUNK +# define JEMALLOC_FREE_JUNK ((uint8_t)0x5a) +#endif /* * Wrap a cpp argument that contains commas such that it isn't broken up into |