Properly name ADB hashmap and named log memory contexts

The ADB hashmaps are stored in extra memory contexts, so the hash
tables are excluded from the overmem accounting.  The new memory
context was unnamed, give it a proper name.

Same thing has happened with extra memory context used for named
global log context - give the extra memory context a proper name.

(cherry picked from commit 3cda9f9f14)
This commit is contained in:
Ondřej Surý 2023-01-30 09:49:35 +01:00
parent dcaf8d99c3
commit a25e41da02
No known key found for this signature in database
GPG key ID: 2820F37E873DEA41

View file

@ -2615,6 +2615,7 @@ dns_adb_create(isc_mem_t *mem, dns_view_t *view, isc_timermgr_t *timermgr,
isc_mutex_init(&adb->namescntlock);
isc_mem_create(&adb->hmctx);
isc_mem_setname(adb->hmctx, "ADB_hashmaps");
#define ALLOCENTRY(adb, el) \
do { \