From ba71972b2132282e028971c0f6d9da65ae87e92a Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 24 Oct 2011 15:50:19 +0000 Subject: [PATCH] Using of junk value in slab allocator similar to modern FreeBSD values. --- src/core/ngx_slab.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/ngx_slab.c b/src/core/ngx_slab.c index 9b5b28f2f..c7b687649 100644 --- a/src/core/ngx_slab.c +++ b/src/core/ngx_slab.c @@ -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