Skip to content

Commit c6838a1

Browse files
committed
Fix external linkage
1 parent f34c266 commit c6838a1

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

src/coreclr/utilcode/util.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -979,10 +979,10 @@ int GetTotalProcessorCount()
979979
}
980980

981981
// The cached number of CPUs available for the current process
982-
static DWORD g_currentProcessCpuCount = 0;
982+
DWORD g_currentProcessCpuCount = 0;
983983

984984
// The cached flag indicating whether there is a cpu quota limit
985-
static BOOL g_isCpuQuotaLimited = false;
985+
BOOL g_isCpuQuotaLimited = false;
986986

987987
//******************************************************************************
988988
// Returns the number of processors that a process has been configured to run on

src/coreclr/vm/syncblk.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1552,9 +1552,9 @@ BOOL ObjHeader::TryEnterObjMonitor(INT32 timeOut)
15521552
return GetSyncBlock()->TryEnterMonitor(timeOut);
15531553
}
15541554

1555-
extern DWORD g_currentProcessCpuCount = 0;
1555+
extern DWORD g_currentProcessCpuCount;
15561556

1557-
extern BOOL g_isCpuQuotaLimited = false;
1557+
extern BOOL g_isCpuQuotaLimited;
15581558

15591559
AwareLock::EnterHelperResult ObjHeader::EnterObjMonitorHelperSpin(Thread* pCurThread)
15601560
{

src/mono/System.Private.CoreLib/src/System/Environment.Mono.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ public static extern int ExitCode
2424
[MethodImplAttribute(MethodImplOptions.InternalCall)]
2525
private static extern int GetProcessorCount();
2626

27+
[MethodImplAttribute(MethodImplOptions.InternalCall)]
28+
private static extern bool GetIsCpuQuotaLimited();
29+
2730
public static extern int TickCount
2831
{
2932
[MethodImplAttribute(MethodImplOptions.InternalCall)]

0 commit comments

Comments
 (0)