What NGX_POOL_ALIGNMENT is used for ?
Artyom Boyko
artyomboyko at gmail.com
Sun Jul 3 19:01:43 MSD 2011
Hi!
As far as i know, malloc return pointer aligned for using with standart data
types (int, long, struct, etc... usually 8 bytes).
Why is NGX_POOL_ALIGNMENT = 16 ? Why is that ? For 64-bit systems ?
I'm very interested in nginx internals, i can learn a lot from it.
PS: discussion at stackoverflow, people also don't know the reason of number
16.
http://stackoverflow.com/questions/6410609/when-do-we-need-to-use-posix-memalign-instead-of-malloc
Please help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20110703/17a18797/attachment.html>
More information about the nginx
mailing list