[compiler-rt] Revert "[compiler-rt][fuzzer] implements SetThreadName for fuchsia." (PR #105162)

via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 20 10:42:30 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-compiler-rt-sanitizer

Author: David CARLIER (devnexen)

<details>
<summary>Changes</summary>

Reverts llvm/llvm-project#<!-- -->99953

---
Full diff: https://github.com/llvm/llvm-project/pull/105162.diff


1 Files Affected:

- (modified) compiler-rt/lib/fuzzer/FuzzerUtilFuchsia.cpp (+1-7) 


``````````diff
diff --git a/compiler-rt/lib/fuzzer/FuzzerUtilFuchsia.cpp b/compiler-rt/lib/fuzzer/FuzzerUtilFuchsia.cpp
index eefa0b326e51b5..fe79e1908d6029 100644
--- a/compiler-rt/lib/fuzzer/FuzzerUtilFuchsia.cpp
+++ b/compiler-rt/lib/fuzzer/FuzzerUtilFuchsia.cpp
@@ -607,13 +607,7 @@ size_t PageSize() {
 }
 
 void SetThreadName(std::thread &thread, const std::string &name) {
-  if (name.size() > 31)
-    name.resize(31);
-  zx_status_t s;
-  if ((s = zx_object_set_property(thread.native_handle(), ZX_PROP_NAME,
-                                  name.c_str(), name.size())) != ZX_OK)
-    Printf("SetThreadName for name %s failed: %s", name.c_str(),
-           zx_status_get_string(s));
+  // TODO ?
 }
 
 } // namespace fuzzer

``````````

</details>


https://github.com/llvm/llvm-project/pull/105162


More information about the llvm-commits mailing list