Skip to content

Commit d710011

Browse files
authored
[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.
1 parent 24fe1d4 commit d710011

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Support/Unix/Threading.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ static constexpr uint32_t get_max_thread_name_length_impl() {
146146
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
147147
return 16;
148148
#elif defined(__OpenBSD__)
149-
return 32;
149+
return 24;
150150
#else
151151
return 0;
152152
#endif

0 commit comments

Comments
 (0)