summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_mp.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-06-22Constified numerous function parameters.Andrew Clayton1-2/+2
As was pointed out by the cppcheck[0] static code analysis utility we can mark numerous function parameters as 'const'. This acts as a hint to the compiler about our intentions and the compiler will tell us when we deviate from them. [0]: https://cppcheck.sourceforge.io/
2022-04-26Fixed indentation.Alejandro Colomar1-8/+8
Some lines (incorrectly) had an indentation of 3 or 5, or 7 or 9, or 11 or 13, or 15 or 17 spaces instead of 4, 8, 12, or 16. Fix them. Found with: $ find src -type f | xargs grep -n '^ [^ ]'; $ find src -type f | xargs grep -n '^ [^ *]'; $ find src -type f | xargs grep -n '^ [^ ]'; $ find src -type f | xargs grep -n '^ [^ *]'; $ find src -type f | xargs grep -n '^ [^ +]'; $ find src -type f | xargs grep -n '^ [^ *+]'; $ find src -type f | xargs grep -n '^ [^ +]'; $ find src -type f | xargs grep -n '^ [^ *+]';
2020-08-13Basic variables support.Valentin Bartenev1-0/+14
2018-11-10Fixed "freed pointer is out of pool" alerts.Valentin Bartenev1-1/+9
The issue was caused by misplacement of allocated blocks in rbtree due to broken comparison function if the distance between two allocations did not fit into intptr_t. As the result, nxt_mp_free() could have failed to find the allocation. In particular, it was mostly observed when Unit was compiled with musl C library on 32-bits systems. This closes #118 issue on GitHub.
2018-07-27Removed implicit call of nxt_thread() in nxt_thread_tid().Valentin Bartenev1-1/+1
Explicit is better than implicit © The Zen of Python. The nxt_thread_tid(NULL) call was used only twice in the code and such behaviour was specific to nxt_thread_tid() function.
2018-04-20Prevention of freeing non-freeable memory pool block.Igor Sysoev1-17/+26
2018-03-05Reduced number of critical log levels.Valentin Bartenev1-4/+1
2017-12-28Changed nxt_mp_retain() and nxt_mp_release() interfaces.Igor Sysoev1-37/+22
2017-08-02Added basic port error handler.Max Romanov1-1/+3
2017-07-18Mem pool cleanup introduced.Max Romanov1-0/+36
Used for connection mem pool cleanup, which can be used by buffers. Used for port mem pool to safely destroy linked process.
2017-07-12Fixed style and building with NXT_DEBUG_MEMORY after 3578a7b7ace4.Valentin Bartenev1-22/+14
2017-07-12Memory pool debug enabled with NXT_DEBUG_ALLOC define.Max Romanov1-24/+70
2017-07-12New process port exchange changed. READY message type introduced.Max Romanov1-1/+5
Application process start request DATA message from router to master. Master notifies router via NEW_PORT message after worker process become ready.
2017-07-07Router: connection destroy sequence fixed.Max Romanov1-0/+2
2017-07-07Taken counter initialized for new pages.Max Romanov1-0/+1
Fixed crash in nxt_mp_get() when pages re-used and 'taken' contains initial 'map' value '0xFFFFFFFF'.
2017-07-07Memory pool thread safety checks in DEBUG build and usage fixes.Max Romanov1-0/+56
2017-06-26Build on Solaris 11 fixed.Max Romanov1-1/+36
2017-06-23Style and comment fixes.Igor Sysoev1-1/+1
2017-06-21Optimizations in nxt_mp_create().Igor Sysoev1-15/+11
2017-06-21Fixed building with -DNXT_DEBUG_MEMORY=1 (broken in 10688b89aa16).Igor Sysoev1-67/+67
2017-06-20Fixed error in the previous changeset.Igor Sysoev1-0/+2
2017-06-19Memory pools refactoring.Igor Sysoev1-0/+890