Enable overriding JEMALLOC_{ALLOC,FREE}_JUNK.

This resolves #509.
This commit is contained in:
Jason Evans 2016-11-22 10:58:58 -08:00
parent 949a27fc32
commit fc11f3cb84

View File

@ -41,8 +41,12 @@
#define MALLOC_PRINTF_BUFSIZE 4096
/* Junk fill patterns. */
#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