aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_crc32.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2006-12-15 21:31:03 +0000
committerIgor Sysoev <igor@sysoev.ru>2006-12-15 21:31:03 +0000
commitc690675ed181de5c271a3554746b2db8e49832fa (patch)
tree0e740e1a1b1995e73a4980624e77c540474bd858 /src/core/ngx_crc32.c
parente2bec9066abe432dab62a9ddaab6744cf5147e37 (diff)
downloadnginx-c690675ed181de5c271a3554746b2db8e49832fa.tar.gz
nginx-c690675ed181de5c271a3554746b2db8e49832fa.zip
allocate aligned ngx_crc32_table_short globally
Diffstat (limited to 'src/core/ngx_crc32.c')
-rw-r--r--src/core/ngx_crc32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ngx_crc32.c b/src/core/ngx_crc32.c
index ac375b06f..4ad8ff3a4 100644
--- a/src/core/ngx_crc32.c
+++ b/src/core/ngx_crc32.c
@@ -102,7 +102,7 @@ uint32_t *ngx_crc32_table_short = ngx_crc32_table16;
ngx_int_t
-ngx_crc32_init(ngx_pool_t *pool)
+ngx_crc32_init(void)
{
void *p;
@@ -113,7 +113,7 @@ ngx_crc32_init(ngx_pool_t *pool)
return NGX_OK;
}
- p = ngx_palloc(pool, 16 * sizeof(uint32_t) + ngx_cacheline_size);
+ p = ngx_alloc(16 * sizeof(uint32_t) + ngx_cacheline_size, ngx_cycle->log);
if (p == NULL) {
return NGX_ERROR;
}