Using of junk value in slab allocator similar to modern FreeBSD values.

This commit is contained in:
Igor Sysoev 2011-10-24 15:50:19 +00:00
parent efc6ecab82
commit ba71972b21

View File

@ -42,14 +42,14 @@
#if (NGX_DEBUG_MALLOC)
#define ngx_slab_junk(p, size) ngx_memset(p, 0xD0, size)
#define ngx_slab_junk(p, size) ngx_memset(p, 0xA5, size)
#else
#if (NGX_HAVE_DEBUG_MALLOC)
#define ngx_slab_junk(p, size) \
if (ngx_debug_malloc) ngx_memset(p, 0xD0, size)
if (ngx_debug_malloc) ngx_memset(p, 0xA5, size)
#else