From: Ondřej Surý Date: Mon, 30 Jan 2023 08:49:35 +0000 (+0100) Subject: Properly name ADB hashmap and named log memory contexts X-Git-Tag: v9.19.10~9^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3cda9f9f14fbf4cf299293b49dabe19580882bb8;p=thirdparty%2Fbind9.git 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. --- diff --git a/lib/dns/adb.c b/lib/dns/adb.c index 7fff6ead7d3..146c5cecca1 100644 --- a/lib/dns/adb.c +++ b/lib/dns/adb.c @@ -1952,6 +1952,7 @@ dns_adb_create(isc_mem_t *mem, dns_view_t *view, isc_loopmgr_t *loopmgr, isc_mem_attach(mem, &adb->mctx); isc_mem_create(&adb->hmctx); + isc_mem_setname(adb->hmctx, "ADB_hashmaps"); isc_hashmap_create(adb->hmctx, ADB_HASH_BITS, ISC_HASHMAP_CASE_INSENSITIVE, &adb->names);