[all-commits] [llvm/llvm-project] 052d58: [Support] Properly zero initialize CPU set when qu...

Christian Ulmann via All-commits all-commits at lists.llvm.org
Fri Jun 6 02:25:08 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 052d5889f871f792def285c92bd91182d07789cd
      https://github.com/llvm/llvm-project/commit/052d5889f871f792def285c92bd91182d07789cd
  Author: Christian Ulmann <christianulmann at gmail.com>
  Date:   2025-06-06 (Fri, 06 Jun 2025)

  Changed paths:
    M llvm/lib/Support/Unix/Threading.inc

  Log Message:
  -----------
  [Support] Properly zero initialize CPU set when querying affinity (#142924)

This commit resolves a potential issue of working with uninitialized
memory when querying the CPU's affinity. The man page of
`sched_getaffinity` does not guarantee that the memory will be fully
overwritten, so this change should ensure that issues are avoided.



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