aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_slab.h
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2017-08-08 15:16:01 +0300
committerRuslan Ermilov <ru@nginx.com>2017-08-08 15:16:01 +0300
commit5f628fef3b837b64096f8e064d51963b1396ffb4 (patch)
treec2073c8d7c66ff7be9b0213e4f11e826de34f783 /src/core/ngx_slab.h
parentc9a81b29b5a7699f3c25c83b6ee9e0c2a07f5f79 (diff)
downloadnginx-5f628fef3b837b64096f8e064d51963b1396ffb4.tar.gz
nginx-5f628fef3b837b64096f8e064d51963b1396ffb4.zip
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.
Diffstat (limited to 'src/core/ngx_slab.h')
-rw-r--r--src/core/ngx_slab.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/ngx_slab.h b/src/core/ngx_slab.h
index eff893c3e..d1876bbec 100644
--- a/src/core/ngx_slab.h
+++ b/src/core/ngx_slab.h
@@ -59,6 +59,7 @@ typedef struct {
} ngx_slab_pool_t;
+void ngx_slab_sizes_init(void);
void ngx_slab_init(ngx_slab_pool_t *pool);
void *ngx_slab_alloc(ngx_slab_pool_t *pool, size_t size);
void *ngx_slab_alloc_locked(ngx_slab_pool_t *pool, size_t size);