Mercurial > hg > nginx
comparison src/core/ngx_alloc.h @ 78:9f81437e0ad3
nginx-0.0.1-2003-04-21-18:55:47 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 21 Apr 2003 14:55:47 +0000 |
parents | 0e81ac0bb3e2 |
children | 637625a2acdb |
comparison
equal
deleted
inserted
replaced
77:57c2e18d3572 | 78:9f81437e0ad3 |
---|---|
4 | 4 |
5 #include <ngx_config.h> | 5 #include <ngx_config.h> |
6 | 6 |
7 #include <ngx_log.h> | 7 #include <ngx_log.h> |
8 | 8 |
9 /* NGX_MAX_ALLOC_FROM_POOL should be (PAGE_SIZE - 1), i.e. 4095 on x86. | |
10 On FreeBSD 5.x it allows to use zero copy send. | |
11 On Windows NT it decreases number of locked pages in kernel. | |
12 */ | |
13 #define NGX_MAX_ALLOC_FROM_POOL 4095 | |
9 | 14 |
10 #define NGX_MAX_ALLOC_FROM_POOL (8192 - sizeof(ngx_pool_t)) | |
11 #define NGX_DEFAULT_POOL_SIZE (16 * 1024) | 15 #define NGX_DEFAULT_POOL_SIZE (16 * 1024) |
12 | 16 |
13 #define ngx_test_null(p, alloc, rc) if ((p = alloc) == NULL) { return rc; } | 17 #define ngx_test_null(p, alloc, rc) if ((p = alloc) == NULL) { return rc; } |
14 | 18 |
15 | 19 |