From 225cc9a1cbb9b2add45872257909c177ff97a80f Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Tue, 5 Apr 2022 12:02:51 -0400 Subject: [PATCH] Move name to within #ifdef block --- src/lib/utils/os_utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/utils/os_utils.cpp b/src/lib/utils/os_utils.cpp index 0f3c2dfdcf0..449fd9bd361 100644 --- a/src/lib/utils/os_utils.cpp +++ b/src/lib/utils/os_utils.cpp @@ -667,8 +667,8 @@ void OS::free_locked_pages(const std::vector& pages) void OS::page_named(void* page, size_t size) { - static constexpr char name[] = "Botan"; #if defined(BOTAN_TARGET_OS_HAS_PRCTL) + static constexpr char name[] = "Botan mlock pool"; int r = prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, reinterpret_cast(page), size, name); BOTAN_UNUSED(r); #else