comparison src/core/ngx_palloc.h @ 2939:7d8667499ddc stable-0.7

merge r2889, r2918, and r2921: fix a pool growing and CPU usage for multi-requests keepalive connections: *) keepalive_requests *) try to reuse last 4 free large allocation links *) do not test a pool block space if we can not allocated from the block 4 times
author Igor Sysoev <igor@sysoev.ru>
date Mon, 15 Jun 2009 08:43:10 +0000
parents 3a8a53c0c42f
children d788521e4b0e
comparison
equal deleted inserted replaced
2938:b002fa81b00d 2939:7d8667499ddc
44 44
45 typedef struct { 45 typedef struct {
46 u_char *last; 46 u_char *last;
47 u_char *end; 47 u_char *end;
48 ngx_pool_t *next; 48 ngx_pool_t *next;
49 ngx_uint_t failed;
49 } ngx_pool_data_t; 50 } ngx_pool_data_t;
50 51
51 52
52 struct ngx_pool_s { 53 struct ngx_pool_s {
53 ngx_pool_data_t d; 54 ngx_pool_data_t d;