From a25e41da02fe1b98620b9798179f000f0fad7be5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Mon, 30 Jan 2023 09:49:35 +0100 Subject: [PATCH] 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 3cda9f9f14fbf4cf299293b49dabe19580882bb8) --- lib/dns/adb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/dns/adb.c b/lib/dns/adb.c index 23cceaf896..9f553a1003 100644 --- a/lib/dns/adb.c +++ b/lib/dns/adb.c @@ -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 { \