[compiler-rt] f4aa7b5 - Revert "[Fuzzer] SetThreadName implementation for Windows"

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 27 09:09:31 PDT 2023


Author: Vitaly Buka
Date: 2023-07-27T09:08:56-07:00
New Revision: f4aa7b5b8d90df7ea563f19bc10ff069f04f2909

URL: https://github.com/llvm/llvm-project/commit/f4aa7b5b8d90df7ea563f19bc10ff069f04f2909
DIFF: https://github.com/llvm/llvm-project/commit/f4aa7b5b8d90df7ea563f19bc10ff069f04f2909.diff

LOG: Revert "[Fuzzer] SetThreadName implementation for Windows"

Breaks window bot.

This reverts commit e3f935c7f80cfb8bdcbe0479672bc92485eecd85.

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 a59a4960e3e1c5..71770166805f78 100644
--- a/compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp
+++ b/compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp
@@ -24,9 +24,7 @@
 #include <windows.h>
 
 // This must be included after windows.h.
-#include <processthreadsapi.h>
 #include <psapi.h>
-#include <stringapiset.h>
 
 namespace fuzzer {
 
@@ -236,9 +234,8 @@ size_t PageSize() {
 }
 
 void SetThreadName(std::thread &thread, const std::string &name) {
-  wchar_t wname[16];
-  if (MultiByteToWideChar(CP_UTF8, 0, name.c_str(), -1, wname, 16) > 0)
-    (void)SetThreadDescription(thread.native_handle(), wname);
+  // TODO ?
+  // to UTF-8 then SetThreadDescription ?
 }
 
 } // namespace fuzzer


        


More information about the llvm-commits mailing list