aboutsummaryrefslogtreecommitdiff
path: root/src/core/nginx.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/nginx.c
parente2bec9066abe432dab62a9ddaab6744cf5147e37 (diff)
downloadnginx-c690675ed181de5c271a3554746b2db8e49832fa.tar.gz
nginx-c690675ed181de5c271a3554746b2db8e49832fa.zip
allocate aligned ngx_crc32_table_short globally
Diffstat (limited to 'src/core/nginx.c')
-rw-r--r--src/core/nginx.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/core/nginx.c b/src/core/nginx.c
index 83b088ba8..2de666aa7 100644
--- a/src/core/nginx.c
+++ b/src/core/nginx.c
@@ -252,6 +252,12 @@ main(int argc, char *const *argv)
return 1;
}
+ /* ngx_crc32_init() requires ngx_cacheline_size set in ngx_os_init() */
+
+ if (ngx_crc32_init() != NGX_OK) {
+ return 1;
+ }
+
if (ngx_add_inherited_sockets(&init_cycle) != NGX_OK) {
return 1;
}
@@ -283,10 +289,6 @@ main(int argc, char *const *argv)
ngx_os_status(cycle->log);
- if (ngx_crc32_init(cycle->pool) != NGX_OK) {
- return 1;
- }
-
ngx_cycle = cycle;
ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module);