Mercurial > hg > nginx-quic
comparison src/core/ngx_regex.c @ 2039:4d8140271204
*) add ngx_palloc_aligned() to allocate explicitlty aligned memory
*) allows non-aligned memory blocks for small allocations and for odd
length strings on all platforms
*) use ngx_palloc_aligned()
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 27 May 2008 09:37:40 +0000 |
parents | 7d313324d874 |
children | 2a92804f4109 |
comparison
equal
deleted
inserted
replaced
2038:93a0d80fdce6 | 2039:4d8140271204 |
---|---|
163 #else | 163 #else |
164 pool = ngx_pcre_pool; | 164 pool = ngx_pcre_pool; |
165 #endif | 165 #endif |
166 | 166 |
167 if (pool) { | 167 if (pool) { |
168 return ngx_palloc(pool, size); | 168 return ngx_palloc_aligned(pool, size); |
169 } | 169 } |
170 | 170 |
171 return NULL; | 171 return NULL; |
172 } | 172 } |
173 | 173 |