[compiler-rt] [compiler-rt][fuzzer] implements SetThreadName for fuchsia. (PR #99953)
David CARLIER via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 22 23:48:40 PDT 2024
================
@@ -607,7 +607,11 @@ size_t PageSize() {
}
void SetThreadName(std::thread &thread, const std::string &name) {
- // TODO ?
+ if (name.size() > 31) {
+ name.resize(31);
+ }
+ (void)zx_object_set_property(thread.native_handle(), ZX_PROP_NAME,
----------------
devnexen wrote:
Yes refactoring might be a nice next step what you say makes sense but now it s a bit inconsistent with Linux version for example.
https://github.com/llvm/llvm-project/pull/99953
More information about the llvm-commits
mailing list