From efa5b1ea045a34fdecce637bb5c6ead64dbce19c Mon Sep 17 00:00:00 2001 From: Geoff Norton Date: Wed, 11 Mar 2015 10:55:28 -0700 Subject: Implement GetLogicalCpuCountFromOS in the PAL for OSX --- src/vm/util.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/vm/util.cpp') diff --git a/src/vm/util.cpp b/src/vm/util.cpp index 6fd3cc2b34..f9f8718a22 100644 --- a/src/vm/util.cpp +++ b/src/vm/util.cpp @@ -1948,8 +1948,9 @@ DWORD GetLogicalCpuCountFromOS() static DWORD val = 0; DWORD retVal = 0; -// UNIXTODO: Implement the functionality in PAL? -#ifndef FEATURE_PAL +#ifdef FEATURE_PAL + retVal = PAL_GetLogicalCpuCountFromOS(); +#else // FEATURE_PAL DWORD nEntries = 0; @@ -2020,7 +2021,6 @@ lDone: { delete[] pslpi; // release the memory allocated for the SLPI array } - #endif // FEATURE_PAL return retVal; -- cgit v1.2.3