Mercurial > hg > nginx
diff src/core/ngx_slab.c @ 4224:4c4997de65b8
Using of junk value in slab allocator similar to modern FreeBSD values.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 24 Oct 2011 15:50:19 +0000 |
parents | 1b779cb69dc8 |
children | d620f497c50f |
line wrap: on
line diff
--- a/src/core/ngx_slab.c Mon Oct 24 15:46:48 2011 +0000 +++ b/src/core/ngx_slab.c Mon Oct 24 15:50:19 2011 +0000 @@ -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