[PATCH] Core: Added comment for ngx_create_pool

tolga ceylan tolga.ceylan at gmail.com
Wed Mar 9 01:42:20 UTC 2016


# HG changeset patch
# User Tolga Ceylan <tolga.ceylan at gmail.com>
# Date 1457487679 28800
#      Tue Mar 08 17:41:19 2016 -0800
# Node ID 5b9659f40da1e685c5b78f04a1c031ef597b410d
# Parent  c5f81dcf97a79576138917501c9a6cc6f53ee930
Core: Added comment for ngx_create_pool

Pool size must be at least 16-bytes aligned
(the NGX_POOL_ALIGNMENT macro).

diff -r c5f81dcf97a7 -r 5b9659f40da1 src/core/ngx_palloc.h
--- a/src/core/ngx_palloc.h     Thu Mar 03 21:14:19 2016 +0300
+++ b/src/core/ngx_palloc.h     Tue Mar 08 17:41:19 2016 -0800
@@ -75,6 +75,9 @@
  void *ngx_alloc(size_t size, ngx_log_t *log);
  void *ngx_calloc(size_t size, ngx_log_t *log);
  
+/*
+ * Pool sizes must be at least NGX_POOL_ALIGNMENT aligned
+ */
  ngx_pool_t *ngx_create_pool(size_t size, ngx_log_t *log);
  void ngx_destroy_pool(ngx_pool_t *pool);
  void ngx_reset_pool(ngx_pool_t *pool);



More information about the nginx-devel mailing list