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

David CARLIER via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 20 10:41:58 PDT 2024


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

Reverts llvm/llvm-project#99953

>From 177a5c23c998699d93ecc64154b111a8adabb66e Mon Sep 17 00:00:00 2001
From: David CARLIER <devnexen at gmail.com>
Date: Tue, 20 Aug 2024 18:41:48 +0100
Subject: [PATCH] Revert "[compiler-rt][fuzzer] implements SetThreadName for
 fuchsia. (#99953)"

This reverts commit 31cc4ccdea92a4fee6a327a07251bb0ed1e6a933.
---
 compiler-rt/lib/fuzzer/FuzzerUtilFuchsia.cpp | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

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



More information about the llvm-commits mailing list