Skip to content

Commit dd3aa26

Browse files
committed
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 cf76ddc.
1 parent 151e33c commit dd3aa26

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -234,13 +234,8 @@ size_t PageSize() {
234234
}
235235

236236
void SetThreadName(std::thread &thread, const std::string &name) {
237-
auto sz = MultiByteToWideChar(CP_UTF8, 0, name.data(), name.size(), nullptr, 0);
238-
std::wstring wname(sz, L' ');
239-
if ((sz == MultiByteToWideChar(CP_UTF8, 0, name.data(), name.size(),
240-
&wname[0], sz)) > 0) {
241-
wname.resize(sz - 1);
242-
(void)SetThreadDescription(thread.native_handle(), wname.c_str());
243-
}
237+
// TODO ?
238+
// to UTF-8 then SetThreadDescription ?
244239
}
245240

246241
} // namespace fuzzer

0 commit comments

Comments
 (0)