mirror of
				https://github.com/nginx/nginx.git
				synced 2025-02-25 18:55:26 -06:00 
			
		
		
		
	Using of junk value in slab allocator similar to modern FreeBSD values.
This commit is contained in:
		@@ -42,14 +42,14 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#if (NGX_DEBUG_MALLOC)
 | 
					#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
 | 
					#else
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if (NGX_HAVE_DEBUG_MALLOC)
 | 
					#if (NGX_HAVE_DEBUG_MALLOC)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define ngx_slab_junk(p, size)                                                \
 | 
					#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
 | 
					#else
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user