Mercurial > hg > nginx
diff src/core/nginx.c @ 930:45df22906c12
allocate aligned ngx_crc32_table_short globally
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 15 Dec 2006 21:31:03 +0000 |
parents | 201d017ea470 |
children | 3a126fca07fc |
line wrap: on
line diff
--- a/src/core/nginx.c Fri Dec 15 21:18:44 2006 +0000 +++ b/src/core/nginx.c Fri Dec 15 21:31:03 2006 +0000 @@ -252,6 +252,12 @@ 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 @@ 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);