From 48ebab8270a96e505a2be128a4875f903ef1c4b2 Mon Sep 17 00:00:00 2001 From: Jan Vorlicek Date: Wed, 19 Apr 2017 15:13:30 -0700 Subject: 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. --- src/gc/gc.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/gc') 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); } -- cgit v1.2.3