Valentin Bartenev
93146616cf
Basic variables support.
2020-08-13 02:46:54 +03:00
Valentin Bartenev
4f4a2d8c63
Fixed "freed pointer is out of pool" alerts.
...
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-11-10 07:38:43 +03:00
Valentin Bartenev
4b67de4bbb
Removed implicit call of nxt_thread() in nxt_thread_tid().
...
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-07-27 17:52:21 +03:00
Igor Sysoev
b95d5b8882
Prevention of freeing non-freeable memory pool block.
2018-04-20 19:46:36 +03:00
Valentin Bartenev
912a49c609
Reduced number of critical log levels.
2018-03-05 17:32:50 +03:00
Igor Sysoev
497faf1b9a
Changed nxt_mp_retain() and nxt_mp_release() interfaces.
2017-12-28 16:01:06 +03:00
Max Romanov
b150f07e80
Added basic port error handler.
2017-08-02 13:36:29 +03:00
Max Romanov
803855138c
Mem pool cleanup introduced.
...
Used for connection mem pool cleanup, which can be used by buffers.
Used for port mem pool to safely destroy linked process.
2017-07-18 00:21:16 +03:00
Valentin Bartenev
2be31e2ed6
Fixed style and building with NXT_DEBUG_MEMORY after 3578a7b7ace4.
2017-07-12 20:57:18 +03:00
Max Romanov
48afadfe7c
Memory pool debug enabled with NXT_DEBUG_ALLOC define.
2017-07-12 20:32:20 +03:00
Max Romanov
b0c1e740cf
New process port exchange changed. READY message type introduced.
...
Application process start request DATA message from router to master.
Master notifies router via NEW_PORT message after worker process become ready.
2017-07-12 20:32:16 +03:00
Max Romanov
e41425bb1f
Router: connection destroy sequence fixed.
2017-07-07 18:16:14 +03:00
Max Romanov
9a402ea83d
Taken counter initialized for new pages.
...
Fixed crash in nxt_mp_get() when pages re-used and 'taken' contains initial
'map' value '0xFFFFFFFF'.
2017-07-07 16:01:34 +03:00
Max Romanov
e58f4ef0d0
Memory pool thread safety checks in DEBUG build and usage fixes.
2017-07-07 16:01:34 +03:00
Max Romanov
b53b7b0413
Build on Solaris 11 fixed.
2017-06-26 19:58:43 +03:00
Igor Sysoev
3fcda23f15
Style and comment fixes.
2017-06-23 13:28:39 +03:00
Igor Sysoev
5e73d93999
Optimizations in nxt_mp_create().
2017-06-21 10:21:06 +03:00
Igor Sysoev
d59e906c01
Fixed building with -DNXT_DEBUG_MEMORY=1 (broken in 10688b89aa16).
2017-06-21 10:20:41 +03:00
Igor Sysoev
c7ab908c19
Fixed error in the previous changeset.
2017-06-20 13:56:28 +03:00
Igor Sysoev
b1b9f621a4
Memory pools refactoring.
2017-06-19 16:26:19 +03:00