We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fc3364 commit 41b3ac3Copy full SHA for 41b3ac3
Sources/Sentry/SentryThreadMetadataCache.cpp
@@ -17,7 +17,10 @@ isSentryOwnedThreadName(const std::string &name)
17
return name.rfind("io.sentry", 0) == 0;
18
}
19
20
-constexpr std::size_t kMaxThreadNameLength = 100;
+// Apple's `libpthread` has a hard limit of 64 characters for thread names.
21
+// See
22
+// https://github.com/apple-oss-distributions/libpthread/blob/42d026df5b07825070f60134b980a1ec2552dfee/src/pthread.c#L1178
23
+constexpr std::size_t kMaxThreadNameLength = 64;
24
25
} // namespace
26
0 commit comments