[all-commits] [llvm/llvm-project] 5a3c25: [libc++][Windows] Enable thread::hardware_concurre...

Yexuan Xiao via All-commits all-commits at lists.llvm.org
Fri Nov 21 02:43:56 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5a3c2573a9644efe3384c4144b119148088b48ef
      https://github.com/llvm/llvm-project/commit/5a3c2573a9644efe3384c4144b119148088b48ef
  Author: Yexuan Xiao <bizwen at nykz.org>
  Date:   2025-11-21 (Fri, 21 Nov 2025)

  Changed paths:
    M libcxx/src/thread.cpp

  Log Message:
  -----------
  [libc++][Windows] Enable thread::hardware_concurrency to support more than 64 processors (#168229)

Starting with Windows 11, processes can utilize more than 64 processors
by default, but GetSystemInfo can only report a maximum of 64. Starting
with Windows Vista, GetActiveProcessorCount accurately retrieves the
total number of processors on the current system. I’ve implemented
similar improvements to Microsoft STL. The following links contain
additional background information:
https://github.com/microsoft/STL/issues/5453,
https://github.com/microsoft/STL/pull/5459 (note: Reason STL uses the
more complex GetLogicalProcessorInformationEx:
https://github.com/microsoft/STL/pull/5459#discussion_r2072242241.).



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