From b6125120ac22c2c7e7cd36df114a2b280dcc33e7 Mon Sep 17 00:00:00 2001 From: Qi Wang Date: Mon, 13 Feb 2023 17:43:12 -0800 Subject: [PATCH] Add an explicit name to the dedicated oversize arena. --- src/arena.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/arena.c b/src/arena.c index 25ab41af..970f60ed 100644 --- a/src/arena.c +++ b/src/arena.c @@ -1746,6 +1746,11 @@ arena_choose_huge(tsd_t *tsd) { if (huge_arena == NULL) { return NULL; } + + char *huge_arena_name = "auto_oversize"; + strncpy(huge_arena->name, huge_arena_name, ARENA_NAME_LEN); + huge_arena->name[ARENA_NAME_LEN - 1] = '\0'; + /* * Purge eagerly for huge allocations, because: 1) number of * huge allocations is usually small, which means ticker based