summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve MacLean <sdmaclea.qdt@qualcommdatacenter.com>2017-08-02 04:37:37 -0400
committerJan Vorlicek <janvorli@microsoft.com>2017-08-02 10:37:37 +0200
commit80c9cfbd39bcbed9707a1c2d32504ce5c0b9b969 (patch)
tree7e308bcb707010a39a85c700edf48fdabd14e7d0
parent81df4e81eb51a01f9ba583cd77acf3bac6e6e77e (diff)
downloadcoreclr-80c9cfbd39bcbed9707a1c2d32504ce5c0b9b969.tar.gz
coreclr-80c9cfbd39bcbed9707a1c2d32504ce5c0b9b969.tar.bz2
coreclr-80c9cfbd39bcbed9707a1c2d32504ce5c0b9b969.zip
PAL enable Thread affinity support (#12936)
-rw-r--r--src/vm/threads.cpp6
-rw-r--r--src/vm/threads.h2
2 files changed, 0 insertions, 8 deletions
diff --git a/src/vm/threads.cpp b/src/vm/threads.cpp
index afb770eca9..a28164f857 100644
--- a/src/vm/threads.cpp
+++ b/src/vm/threads.cpp
@@ -495,7 +495,6 @@ void Thread::ChooseThreadCPUGroupAffinity()
}
CONTRACTL_END;
-#ifndef FEATURE_PAL
if (!CPUGroupInfo::CanEnableGCCPUGroups() || !CPUGroupInfo::CanEnableThreadUseAllCpuGroups())
return;
@@ -515,7 +514,6 @@ void Thread::ChooseThreadCPUGroupAffinity()
CPUGroupInfo::SetThreadGroupAffinity(GetThreadHandle(), &groupAffinity, NULL);
m_wCPUGroup = groupAffinity.Group;
m_pAffinityMask = groupAffinity.Mask;
-#endif // !FEATURE_PAL
}
void Thread::ClearThreadCPUGroupAffinity()
@@ -527,7 +525,6 @@ void Thread::ClearThreadCPUGroupAffinity()
}
CONTRACTL_END;
-#ifndef FEATURE_PAL
if (!CPUGroupInfo::CanEnableGCCPUGroups() || !CPUGroupInfo::CanEnableThreadUseAllCpuGroups())
return;
@@ -545,7 +542,6 @@ void Thread::ClearThreadCPUGroupAffinity()
m_wCPUGroup = 0;
m_pAffinityMask = 0;
-#endif // !FEATURE_PAL
}
DWORD Thread::StartThread()
@@ -2017,10 +2013,8 @@ Thread::Thread()
m_fGCSpecial = FALSE;
-#if !defined(FEATURE_PAL)
m_wCPUGroup = 0;
m_pAffinityMask = 0;
-#endif
m_pAllLoggedTypes = NULL;
diff --git a/src/vm/threads.h b/src/vm/threads.h
index eff7fb6c2a..9824ef1301 100644
--- a/src/vm/threads.h
+++ b/src/vm/threads.h
@@ -5251,11 +5251,9 @@ public:
// object associated with them (e.g., the bgc thread).
void SetGCSpecial(bool fGCSpecial);
-#ifndef FEATURE_PAL
private:
WORD m_wCPUGroup;
DWORD_PTR m_pAffinityMask;
-#endif // !FEATURE_PAL
public:
void ChooseThreadCPUGroupAffinity();