Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1284)

Issue 2978863002: Fix DetectNumberOfCores for 32-bit processes (Closed)

Created:
3 years, 5 months ago by brucedawson
Modified:
3 years, 5 months ago
Reviewers:
henrika_webrtc
CC:
webrtc-reviews_webrtc.org, zhengzhonghou_agora.io, tterriberry_mozilla.com, fengyue_agora.io, peah-webrtc, mflodman
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Fix DetectNumberOfCores for 32-bit processes GetSystemInfo will not return more than 32 for dwNumberOfProcessors when called from a 32-bit process. This means that Chrome lies to me whenever I enable logging. Calling GetNativeSystemInfo allows Chrome to return up to 64 as the processor count. GetNativeSystemInfo even runs on WindowsXP if that matters. With the fix applied in a Chromium repo the logging at startup now says: [320:196:712/335.515:INFO:cpu_info.cc(50)] Available number of cores: 48 BUG=webrtc:7981 Review-Url: https://codereview.webrtc.org/2978863002 Cr-Commit-Position: refs/heads/master@{#19008} Committed: https://chromium.googlesource.com/external/webrtc/+/2178f700f6a375c67f4246e3492b09e34c551711

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M webrtc/system_wrappers/source/cpu_info.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 19 (15 generated)
brucedawson
Minor fix. PTAL.
3 years, 5 months ago (2017-07-13 00:46:28 UTC) #6
henrika_webrtc
Thanks for improving the code ;-) lgtm
3 years, 5 months ago (2017-07-13 08:05:41 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2978863002/1
3 years, 5 months ago (2017-07-13 17:02:50 UTC) #16
commit-bot: I haz the power
3 years, 5 months ago (2017-07-13 17:06:18 UTC) #19
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/external/webrtc/+/2178f700f6a375c67f4246e34...

Powered by Google App Engine
This is Rietveld 408576698