mirror of
https://github.com/nginx/nginx.git
synced 2025-08-05 22:26:15 +08:00
Using of junk value in slab allocator similar to modern FreeBSD values.
This commit is contained in:
parent
efc6ecab82
commit
ba71972b21
@ -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…
Reference in New Issue
Block a user