mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-03 08:05:21 +00:00
put names on memory pools
This commit is contained in:
@@ -866,6 +866,7 @@ dns_dispatch_create(isc_mem_t *mctx, isc_socket_t *sock, isc_task_t *task,
|
|||||||
res = DNS_R_NOMEMORY;
|
res = DNS_R_NOMEMORY;
|
||||||
goto out3;
|
goto out3;
|
||||||
}
|
}
|
||||||
|
isc_mempool_setname(disp->epool, "disp_epool");
|
||||||
|
|
||||||
disp->bpool = NULL;
|
disp->bpool = NULL;
|
||||||
if (isc_mempool_create(mctx, maxbuffersize,
|
if (isc_mempool_create(mctx, maxbuffersize,
|
||||||
@@ -874,6 +875,7 @@ dns_dispatch_create(isc_mem_t *mctx, isc_socket_t *sock, isc_task_t *task,
|
|||||||
goto out4;
|
goto out4;
|
||||||
}
|
}
|
||||||
isc_mempool_setmaxalloc(disp->bpool, maxbuffers);
|
isc_mempool_setmaxalloc(disp->bpool, maxbuffers);
|
||||||
|
isc_mempool_setname(disp->bpool, "disp_bpool");
|
||||||
|
|
||||||
disp->rpool = NULL;
|
disp->rpool = NULL;
|
||||||
if (isc_mempool_create(mctx, sizeof(dns_dispentry_t),
|
if (isc_mempool_create(mctx, sizeof(dns_dispentry_t),
|
||||||
@@ -881,6 +883,7 @@ dns_dispatch_create(isc_mem_t *mctx, isc_socket_t *sock, isc_task_t *task,
|
|||||||
res = DNS_R_NOMEMORY;
|
res = DNS_R_NOMEMORY;
|
||||||
goto out5;
|
goto out5;
|
||||||
}
|
}
|
||||||
|
isc_mempool_setname(disp->rpool, "disp_rpool");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Keep some number of items around. This should be a config
|
* Keep some number of items around. This should be a config
|
||||||
|
Reference in New Issue
Block a user