[llvm] [llvm][Support] Adjust maximum thread name length to the right value for OpenBSD (PR #106956)
Brad Smith via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 2 02:39:01 PDT 2024
https://github.com/brad0 created https://github.com/llvm/llvm-project/pull/106956
The thread name length is derived from _MAXCOMLEN which is 24.
>From 5f2f1e11956a0a8c22ab3d7ee56aeac1fc8bb945 Mon Sep 17 00:00:00 2001
From: Brad Smith <brad at comstyle.com>
Date: Mon, 2 Sep 2024 05:34:33 -0400
Subject: [PATCH] [llvm][Support] Adjust maximum thread name length to the
right value for OpenBSD
The thread name length is derived from _MAXCOMLEN which is 24.
---
llvm/lib/Support/Unix/Threading.inc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/Support/Unix/Threading.inc b/llvm/lib/Support/Unix/Threading.inc
index 1812d990f21ac1..acfd4ad51902bb 100644
--- a/llvm/lib/Support/Unix/Threading.inc
+++ b/llvm/lib/Support/Unix/Threading.inc
@@ -146,7 +146,7 @@ static constexpr uint32_t get_max_thread_name_length_impl() {
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
return 16;
#elif defined(__OpenBSD__)
- return 32;
+ return 24;
#else
return 0;
#endif
More information about the llvm-commits
mailing list