mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
Merge branch '2398-adjust-the-dns_message-mempools' into 'main'
Reduce freemax values for dns_message mempools Closes #2398 See merge request isc-projects/bind9!5646
This commit is contained in:
commit
ce2cad5d65
@ -722,12 +722,12 @@ dns_message_create(isc_mem_t *mctx, unsigned int intent, dns_message_t **msgp) {
|
||||
|
||||
isc_mempool_create(m->mctx, sizeof(dns_fixedname_t), &m->namepool);
|
||||
isc_mempool_setfillcount(m->namepool, NAME_FILLCOUNT);
|
||||
isc_mempool_setfreemax(m->namepool, 32 * NAME_FREEMAX);
|
||||
isc_mempool_setfreemax(m->namepool, NAME_FREEMAX);
|
||||
isc_mempool_setname(m->namepool, "msg:names");
|
||||
|
||||
isc_mempool_create(m->mctx, sizeof(dns_rdataset_t), &m->rdspool);
|
||||
isc_mempool_setfillcount(m->rdspool, RDATASET_FILLCOUNT);
|
||||
isc_mempool_setfreemax(m->rdspool, 32 * RDATASET_FREEMAX);
|
||||
isc_mempool_setfreemax(m->rdspool, RDATASET_FREEMAX);
|
||||
isc_mempool_setname(m->rdspool, "msg:rdataset");
|
||||
|
||||
isc_buffer_allocate(mctx, &dynbuf, SCRATCHPAD_SIZE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user