Mercurial > hg > nginx
comparison src/http/ngx_http_core_module.c @ 5637:5a65b9d8bc2b
Adjusted default value of types_hash_bucket_size (ticket #352).
The ngx_cacheline_size may be too low on some platforms, resulting
in unexpected hash build problems (as no collisions are tolerated due
to low bucket_size, and max_size isn't big enough to build a hash without
collisions). These problems aren't fatal anymore but nevertheless
need to be addressed.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 31 Mar 2014 22:47:42 +0400 |
parents | d0e75244a18a |
children | b51bd021808b |
comparison
equal
deleted
inserted
replaced
5636:54f847c88cf7 | 5637:5a65b9d8bc2b |
---|---|
3708 | 3708 |
3709 ngx_conf_merge_uint_value(conf->types_hash_max_size, | 3709 ngx_conf_merge_uint_value(conf->types_hash_max_size, |
3710 prev->types_hash_max_size, 1024); | 3710 prev->types_hash_max_size, 1024); |
3711 | 3711 |
3712 ngx_conf_merge_uint_value(conf->types_hash_bucket_size, | 3712 ngx_conf_merge_uint_value(conf->types_hash_bucket_size, |
3713 prev->types_hash_bucket_size, | 3713 prev->types_hash_bucket_size, 64); |
3714 ngx_cacheline_size); | |
3715 | 3714 |
3716 conf->types_hash_bucket_size = ngx_align(conf->types_hash_bucket_size, | 3715 conf->types_hash_bucket_size = ngx_align(conf->types_hash_bucket_size, |
3717 ngx_cacheline_size); | 3716 ngx_cacheline_size); |
3718 | 3717 |
3719 /* | 3718 /* |