-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[llvm][Support] Adjust maximum thread name length to the right value for OpenBSD #106956
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[llvm][Support] Adjust maximum thread name length to the right value for OpenBSD #106956
Conversation
…for OpenBSD The thread name length is derived from _MAXCOMLEN which is 24.
@llvm/pr-subscribers-llvm-support Author: Brad Smith (brad0) ChangesThe thread name length is derived from _MAXCOMLEN which is 24. Full diff: https://github.com/llvm/llvm-project/pull/106956.diff 1 Files Affected:
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
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/123/builds/4735 Here is the relevant piece of the build log for the reference
|
The thread name length is derived from _MAXCOMLEN which is 24.