Welcome! Log In Create A New Profile

Advanced

[nginx] svn commit: r4225 - trunk/src/core

October 24, 2011 11:52AM
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


_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] svn commit: r4225 - trunk/src/core

Igor Sysoev 1287 October 24, 2011 11:52AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 71
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready