mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
Properly name the loop->mctx
The per loop memory context were unnamed, properly name them as 'loop<tid>'.
This commit is contained in:
@@ -209,7 +209,7 @@ queue_cb(uv_async_t *handle) {
|
||||
}
|
||||
|
||||
static void
|
||||
loop_init(isc_loop_t *loop, isc_loopmgr_t *loopmgr, size_t tid) {
|
||||
loop_init(isc_loop_t *loop, isc_loopmgr_t *loopmgr, uint32_t tid) {
|
||||
*loop = (isc_loop_t){
|
||||
.tid = tid,
|
||||
.loopmgr = loopmgr,
|
||||
@@ -234,7 +234,10 @@ loop_init(isc_loop_t *loop, isc_loopmgr_t *loopmgr, size_t tid) {
|
||||
UV_RUNTIME_CHECK(uv_async_init, r);
|
||||
uv_handle_set_data(&loop->destroy_trigger, loop);
|
||||
|
||||
char name[16];
|
||||
snprintf(name, sizeof(name), "loop-%08" PRIx32, tid);
|
||||
isc_mem_create(&loop->mctx);
|
||||
isc_mem_setname(loop->mctx, name);
|
||||
|
||||
isc_mutex_init(&loop->queue_lock);
|
||||
|
||||
|
Reference in New Issue
Block a user