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

Reverts llvm/llvm-project#99953
This commit is contained in:
David CARLIER 2024-08-20 19:42:11 +02:00 committed by GitHub
parent 770cd24140
commit ddaa8284f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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