diff options
author | Brad Smith <brad@comstyle.com> | 2024-09-02 06:02:24 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-02 06:02:24 -0400 |
commit | d7100111f41ca314c094987d880d1648b78256af (patch) | |
tree | 9d442372f46478b2d4e49df10d7419839fb7c5aa /llvm/lib/Support/Unix/Threading.inc | |
parent | 24fe1d4fd61983277c8061ce591970bc775a0fb5 (diff) | |
download | llvm-d7100111f41ca314c094987d880d1648b78256af.zip llvm-d7100111f41ca314c094987d880d1648b78256af.tar.gz llvm-d7100111f41ca314c094987d880d1648b78256af.tar.bz2 |
[llvm][Support] Adjust maximum thread name length to the right value for OpenBSD (#106956)
The thread name length is derived from _MAXCOMLEN which is 24.
Diffstat (limited to 'llvm/lib/Support/Unix/Threading.inc')
-rw-r--r-- | llvm/lib/Support/Unix/Threading.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Unix/Threading.inc b/llvm/lib/Support/Unix/Threading.inc index 1812d99..acfd4ad 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 |