summaryrefslogtreecommitdiff
path: root/src/gc
diff options
context:
space:
mode:
authorJan Vorlicek <janvorli@microsoft.com>2017-04-19 15:13:30 -0700
committerGitHub <noreply@github.com>2017-04-19 15:13:30 -0700
commit48ebab8270a96e505a2be128a4875f903ef1c4b2 (patch)
tree78313aeb604ebecf715e6f4a5c2cd8b3a1ee907b /src/gc
parent9b9989da73f4ee8de5d3c1257d46f8d7295dc44f (diff)
downloadcoreclr-48ebab8270a96e505a2be128a4875f903ef1c4b2.tar.gz
coreclr-48ebab8270a96e505a2be128a4875f903ef1c4b2.tar.bz2
coreclr-48ebab8270a96e505a2be128a4875f903ef1c4b2.zip
Add NUMA and thread affinity support for Unix (#10938)
* Add NUMA and thread affinity support for Unix This change adds new PAL functions for NUMA and thread affinity support for Unix and also enables related code in GC and VM for FEATURE_PAL. It doesn't reflect the limits imposed by CGROUPS on systems with CGROUPS enables yet.
Diffstat (limited to 'src/gc')
-rw-r--r--src/gc/gc.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/gc/gc.cpp b/src/gc/gc.cpp
index 6d53c897fb..46820d1274 100644
--- a/src/gc/gc.cpp
+++ b/src/gc/gc.cpp
@@ -5151,7 +5151,6 @@ void gc_heap::destroy_thread_support ()
}
}
-#if !defined(FEATURE_PAL)
void set_thread_group_affinity_for_heap(int heap_number, GCThreadAffinity* affinity)
{
affinity->Group = GCThreadAffinity::None;
@@ -5231,7 +5230,6 @@ void set_thread_affinity_mask_for_heap(int heap_number, GCThreadAffinity* affini
}
}
}
-#endif // !FEATURE_PAL
bool gc_heap::create_gc_thread ()
{
@@ -5241,7 +5239,6 @@ bool gc_heap::create_gc_thread ()
affinity.Group = GCThreadAffinity::None;
affinity.Processor = GCThreadAffinity::None;
-#if !defined(FEATURE_PAL)
if (!gc_thread_no_affinitize_p)
{
// We are about to set affinity for GC threads. It is a good place to set up NUMA and
@@ -5252,7 +5249,6 @@ bool gc_heap::create_gc_thread ()
else
set_thread_affinity_mask_for_heap(heap_number, &affinity);
}
-#endif // !FEATURE_PAL
return GCToOSInterface::CreateThread(gc_thread_stub, this, &affinity);
}