[compiler-rt] dd3aa26 - Revert "[Fuzzer] SetThreadName implementation for Windows"
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 28 12:27:55 PDT 2023
Author: Vitaly Buka
Date: 2023-08-28T12:27:00-07:00
New Revision: dd3aa26fc8e9de37a39611f7a6a602bcb4153784
URL: https://github.com/llvm/llvm-project/commit/dd3aa26fc8e9de37a39611f7a6a602bcb4153784
DIFF: https://github.com/llvm/llvm-project/commit/dd3aa26fc8e9de37a39611f7a6a602bcb4153784.diff
LOG: Revert "[Fuzzer] SetThreadName implementation for Windows"
Fails with "The procedure entry point SetThreadDescription could not be located in the dynamic link library..."
This reverts commit cf76ddcbeb10be1f3eee5fa86dc41f9ca2435d50.
Added:
Modified:
compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp b/compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp
index eed69d5d5b1195..71770166805f78 100644
--- a/compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp
+++ b/compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp
@@ -234,13 +234,8 @@ size_t PageSize() {
}
void SetThreadName(std::thread &thread, const std::string &name) {
- auto sz = MultiByteToWideChar(CP_UTF8, 0, name.data(), name.size(), nullptr, 0);
- std::wstring wname(sz, L' ');
- if ((sz == MultiByteToWideChar(CP_UTF8, 0, name.data(), name.size(),
- &wname[0], sz)) > 0) {
- wname.resize(sz - 1);
- (void)SetThreadDescription(thread.native_handle(), wname.c_str());
- }
+ // TODO ?
+ // to UTF-8 then SetThreadDescription ?
}
} // namespace fuzzer
More information about the llvm-commits
mailing list