summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_port_memory_int.h
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2018-07-12 16:06:36 +0300
committerMax Romanov <max.romanov@nginx.com>2018-07-12 16:06:36 +0300
commit4d818a6f237a5da6c600d648158639edc7dda6f3 (patch)
tree72296a77901301f2979cb048e1aa6b370dac8a7d /src/nxt_port_memory_int.h
parente6cd1c4257945063473d12a1eeed8d07dfe05467 (diff)
downloadunit-4d818a6f237a5da6c600d648158639edc7dda6f3.tar.gz
unit-4d818a6f237a5da6c600d648158639edc7dda6f3.tar.bz2
Enabled body buffer shared memory segmentation.
Changeset #699 fixes shared memory allocation: continous buffer with requested size should be allocated or function failed. For body longer than 10 Mb, this allocation will definitely fails. For body buffer it is not required to send it in a single continous buffer, so, need to request minimum reasonable amount of shared memory and try to extend it, if possible or allocate next buffer.
Diffstat (limited to 'src/nxt_port_memory_int.h')
-rw-r--r--src/nxt_port_memory_int.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_port_memory_int.h b/src/nxt_port_memory_int.h
index e56eb4c8..53dfaebf 100644
--- a/src/nxt_port_memory_int.h
+++ b/src/nxt_port_memory_int.h
@@ -89,7 +89,7 @@ struct nxt_port_mmap_tracking_msg_s {
nxt_chunk_id_t tracking_id; /* Tracking index. */
};
-static nxt_bool_t
+nxt_inline nxt_bool_t
nxt_port_mmap_get_free_chunk(nxt_free_map_t *m, nxt_chunk_id_t *c);
#define nxt_port_mmap_get_chunk_busy(m, c) \
@@ -126,7 +126,7 @@ nxt_port_mmap_chunk_start(nxt_port_mmap_header_t *hdr, nxt_chunk_id_t c)
}
-static nxt_bool_t
+nxt_inline nxt_bool_t
nxt_port_mmap_get_free_chunk(nxt_free_map_t *m, nxt_chunk_id_t *c)
{
const nxt_free_map_t default_mask = (nxt_free_map_t) -1;