diff options
author | Max Romanov <max.romanov@nginx.com> | 2017-07-07 16:01:34 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2017-07-07 16:01:34 +0300 |
commit | 9a402ea83d24ab4e380298a5718e7c4bf1a76219 (patch) | |
tree | ea42d0640de86f1cb926c9bc561d0c4e11cd894b /src/nxt_mp.c | |
parent | e58f4ef0d030f270c3ef2da7dcb891c961718372 (diff) | |
download | unit-9a402ea83d24ab4e380298a5718e7c4bf1a76219.tar.gz unit-9a402ea83d24ab4e380298a5718e7c4bf1a76219.tar.bz2 |
Taken counter initialized for new pages.
Fixed crash in nxt_mp_get() when pages re-used and 'taken' contains initial
'map' value '0xFFFFFFFF'.
Diffstat (limited to 'src/nxt_mp.c')
-rw-r--r-- | src/nxt_mp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nxt_mp.c b/src/nxt_mp.c index 464df1c1..aafc1ab5 100644 --- a/src/nxt_mp.c +++ b/src/nxt_mp.c @@ -568,6 +568,7 @@ nxt_mp_get_small(nxt_mp_t *mp, nxt_queue_t *pages, size_t size) nxt_queue_insert_head(pages, &page->link); page->size = 0xFF; + page->u.taken = 0; found: |