Set name for all the isc_mem context

The memory context for isc_managers and dst_api units had no name and
that was causing trouble with the statistics channel output.  Set the
name for the two memory context that were missing a proper name.
This commit is contained in:
Ondřej Surý 2025-04-25 13:01:16 +02:00
parent bc4a19acff
commit 5d264b3329
No known key found for this signature in database
GPG key ID: 2820F37E873DEA41
2 changed files with 2 additions and 0 deletions

View file

@ -191,6 +191,7 @@ static isc_mem_t *dst__mctx = NULL;
void
dst__lib_initialize(void) {
isc_mem_create(&dst__mctx);
isc_mem_setname(dst__mctx, "dst");
dst__hmacmd5_init(&dst_t_func[DST_ALG_HMACMD5]);
dst__hmacsha1_init(&dst_t_func[DST_ALG_HMACSHA1]);

View file

@ -22,6 +22,7 @@ isc_managers_create(isc_mem_t **mctxp, uint32_t workers,
REQUIRE(mctxp != NULL && *mctxp == NULL);
isc_mem_create(mctxp);
INSIST(*mctxp != NULL);
isc_mem_setname(*mctxp, "managers");
REQUIRE(loopmgrp != NULL && *loopmgrp == NULL);
isc_loopmgr_create(*mctxp, workers, loopmgrp);