 +};
 +
 +
- struct ngx_array_s {
+ typedef struct {
      void        *elts;
      ngx_uint_t   nelts;
      size_t       size;

     ngx_pool_t  *pool;
+
+    ngx_array_link_t *old_elts;
 };
 
 
@@ -40,6 +51,7 @@
     array->size = size;
     array->nalloc = n;
     array->pool = pool;

 }
 
 
@@ -256,38 +152,48 @@ void *
 ngx_pmemalign(ngx_pool_t *pool, size_t size, size_t alignment)
 {
     void              *p;
