From 0cfd70c530dafc909925767c0a6dd2e880008446 Mon Sep 17 00:00:00 2001 From: Hartmut Kaiser Date: Mon, 3 Jul 2023 08:41:51 -0500 Subject: [PATCH] Fixing error message about use_guard_pages --- .../include/hpx/coroutines/detail/posix_utility.hpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/libs/core/coroutines/include/hpx/coroutines/detail/posix_utility.hpp b/libs/core/coroutines/include/hpx/coroutines/detail/posix_utility.hpp index 4af47013f87b..4bc4b248eda3 100644 --- a/libs/core/coroutines/include/hpx/coroutines/detail/posix_utility.hpp +++ b/libs/core/coroutines/include/hpx/coroutines/detail/posix_utility.hpp @@ -100,11 +100,11 @@ namespace hpx::threads::coroutines::detail::posix { "mmap() failed to allocate thread stack"; if (ENOMEM == errno && use_guard_pages) { - error_message = - "mmap() failed to allocate thread stack due to " - "insufficient resources, increase " - "/proc/sys/vm/max_map_count or add " - "-Ihpx.stacks.use_guard_pages=0 to the command line"; + error_message = "mmap() failed to allocate thread stack due to " + " insufficient resources, increase " + "/proc/sys/vm/max_map_count or add " + "--hpx:ini=hpx.stacks.use_guard_pages=0 to the " + "command line"; } throw std::runtime_error(error_message); } @@ -171,7 +171,8 @@ namespace hpx::threads::coroutines::detail::posix { #endif } -#else // non-mmap() +#else + // non-mmap() //this should be a fine default. static constexpr std::size_t const stack_alignment = sizeof(void*) > 16 ?