mirror of
https://github.com/nginx/nginx.git
synced 2026-10-23 12:32:56 +00:00
Using of junk value in slab allocator similar to modern FreeBSD values.
This commit is contained in:
parent
efc6ecab82
commit
ba71972b21
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue