[llvm] d710011 - [llvm][Support] Adjust maximum thread name length to the right value for OpenBSD (#106956)

via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 2 03:02:27 PDT 2024


Author: Brad Smith
Date: 2024-09-02T06:02:24-04:00
New Revision: d7100111f41ca314c094987d880d1648b78256af

URL: https://github.com/llvm/llvm-project/commit/d7100111f41ca314c094987d880d1648b78256af
DIFF: https://github.com/llvm/llvm-project/commit/d7100111f41ca314c094987d880d1648b78256af.diff

LOG: [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.

Added: 
    

Modified: 
    llvm/lib/Support/Unix/Threading.inc

Removed: 
    


################################################################################
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