diff options
author | Max Romanov <max.romanov@nginx.com> | 2018-06-20 19:11:27 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2018-06-20 19:11:27 +0300 |
commit | b1d7844449b813f8dde73da4e11b8b2d8233f704 (patch) | |
tree | d3043eb7149b6d853de28c2f08319fec8b9a3c60 /src/nxt_application.h | |
parent | 6157a599f2d14a933409afdb0f41a8327950ffab (diff) | |
download | unit-b1d7844449b813f8dde73da4e11b8b2d8233f704.tar.gz unit-b1d7844449b813f8dde73da4e11b8b2d8233f704.tar.bz2 |
Fixed allocation of multiple shared memory chunks.
Previously, one shared memory chunk was allocated under mutex and other
chunks (if required) were allocated using atomic operations. So such
allocation is not guaranteed and the result buffer can be less than
requested.
This commit moves multiple chunks allocation under mutex and guarantees
the result buffer is large enough.
Diffstat (limited to 'src/nxt_application.h')
0 files changed, 0 insertions, 0 deletions