[llvm] [llvm][Support] Adjust maximum thread name length to the right value for OpenBSD (PR #106956)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 2 02:39:34 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-support
Author: Brad Smith (brad0)
<details>
<summary>Changes</summary>
The thread name length is derived from _MAXCOMLEN which is 24.
---
Full diff: https://github.com/llvm/llvm-project/pull/106956.diff
1 Files Affected:
- (modified) llvm/lib/Support/Unix/Threading.inc (+1-1)
``````````diff
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
``````````
</details>
https://github.com/llvm/llvm-project/pull/106956
More information about the llvm-commits
mailing list