Skip to content

Commit

Permalink
Use possible CPU counts for determining core counts (#188).
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 550628877
Change-Id: Id6e6bb6fe8148a692a0376aeb0d0172a9dc74038
  • Loading branch information
ckennelly authored and copybara-github committed Jul 24, 2023
1 parent d3f9f77 commit cbbe578
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tcmalloc/internal/sysinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ int NumPossibleCPUsNoCache();
#endif // __linux__

inline int NumCPUs() {
// TODO(b/67389555): Switch to NumCPUs()
static const int result = absl::base_internal::NumCPUs();
static const int result = sysinfo_internal::NumPossibleCPUsNoCache();
return result;
}

Expand Down

0 comments on commit cbbe578

Please sign in to comment.