[nginx] svn commit: r4225 - trunk/src/core
igor at sysoev.ru
igor at sysoev.ru
Mon Oct 24 15:50:20 UTC 2011
Author: is
Date: 2011-10-24 15:50:19 +0000 (Mon, 24 Oct 2011)
New Revision: 4225
Modified:
trunk/src/core/ngx_slab.c
Log:
Using of junk value in slab allocator similar to modern FreeBSD values.
Modified: trunk/src/core/ngx_slab.c
===================================================================
--- trunk/src/core/ngx_slab.c 2011-10-24 15:46:48 UTC (rev 4224)
+++ trunk/src/core/ngx_slab.c 2011-10-24 15:50:19 UTC (rev 4225)
@@ -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
More information about the nginx-devel
mailing list