Mercurial > hg > nginx
comparison src/core/nginx.c @ 7081:69f9ee0342db
Slab: fixed initialization on win32.
On Windows, a worker process does not call ngx_slab_init() from
ngx_init_zone_pool(), so ngx_slab_max_size, ngx_slab_exact_size,
and ngx_slab_exact_shift were left uninitialized.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 08 Aug 2017 15:16:01 +0300 |
parents | 97c99bb43737 |
children | 8b84d60ef13d |
comparison
equal
deleted
inserted
replaced
7080:ac120e797d28 | 7081:69f9ee0342db |
---|---|
270 */ | 270 */ |
271 | 271 |
272 if (ngx_crc32_table_init() != NGX_OK) { | 272 if (ngx_crc32_table_init() != NGX_OK) { |
273 return 1; | 273 return 1; |
274 } | 274 } |
275 | |
276 /* | |
277 * ngx_slab_sizes_init() requires ngx_pagesize set in ngx_os_init() | |
278 */ | |
279 | |
280 ngx_slab_sizes_init(); | |
275 | 281 |
276 if (ngx_add_inherited_sockets(&init_cycle) != NGX_OK) { | 282 if (ngx_add_inherited_sockets(&init_cycle) != NGX_OK) { |
277 return 1; | 283 return 1; |
278 } | 284 } |
279 | 285 |