[all-commits] [llvm/llvm-project] 2cdf61: [compiler-rt][Fuzzer] SetThreadName windows implem...

David CARLIER via All-commits all-commits at lists.llvm.org
Thu Feb 29 17:47:17 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2cdf611c02392112860e661e8251efa8b1335cc2
      https://github.com/llvm/llvm-project/commit/2cdf611c02392112860e661e8251efa8b1335cc2
  Author: David CARLIER <devnexen at gmail.com>
  Date:   2024-02-29 (Thu, 29 Feb 2024)

  Changed paths:
    M compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp

  Log Message:
  -----------
  [compiler-rt][Fuzzer] SetThreadName windows implementation new try. (#76761)

SetThreadDescription symbol needs to be dynamically loaded before usage.
Then using a wide string buffer, since we re using a null terminated
string, we can use MultiByteToWideChar -1 as 4th argument to finally set
the thread name.

Previously `SetThreadDescription` was called directly causing crash.
It was reverted in dd3aa26fc8e9de37a39611f7a6a602bcb4153784



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list