Using new memory pool implementation.

This commit is contained in:
Igor Sysoev
2017-06-20 19:49:17 +03:00
parent c7ab908c19
commit f888a5310c
72 changed files with 350 additions and 1326 deletions

View File

@@ -513,7 +513,7 @@ nxt_process_port_new(nxt_process_t *process)
{
nxt_port_t *port;
port = nxt_mem_cache_zalloc0(process->mem_pool, sizeof(nxt_port_t));
port = nxt_mp_zalloc(process->mem_pool, sizeof(nxt_port_t));
if (nxt_fast_path(port != NULL)) {
port->id = process->last_port_id++;
port->pid = process->pid;