The main arena is the arena assigned to the main thread. It is saved as a global variable (static
and thus zero-initialized):
static struct malloc_state main_arena =
{
.mutex = _LIBC_LOCK_INITIALIZER,
.next = &main_arena,
.attached_threads = 1
};