2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

put names on memory pools

This commit is contained in:
Michael Graff
1999-10-22 05:18:35 +00:00
parent 2f8898fa5e
commit 233f59d933

View File

@@ -866,6 +866,7 @@ dns_dispatch_create(isc_mem_t *mctx, isc_socket_t *sock, isc_task_t *task,
res = DNS_R_NOMEMORY;
goto out3;
}
isc_mempool_setname(disp->epool, "disp_epool");
disp->bpool = NULL;
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;
}
isc_mempool_setmaxalloc(disp->bpool, maxbuffers);
isc_mempool_setname(disp->bpool, "disp_bpool");
disp->rpool = NULL;
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;
goto out5;
}
isc_mempool_setname(disp->rpool, "disp_rpool");
/*
* Keep some number of items around. This should be a config