Delete unused YieldProcessorScalingFactor from GC (#23994)
authorJan Kotas <jkotas@microsoft.com>
Mon, 15 Apr 2019 23:30:00 +0000 (16:30 -0700)
committerGitHub <noreply@github.com>
Mon, 15 Apr 2019 23:30:00 +0000 (16:30 -0700)
src/gc/gc.h
src/gc/gccommon.cpp
src/gc/gcpriv.h

index 225aa6b..ecf2e1f 100644 (file)
@@ -141,8 +141,6 @@ extern "C" uint32_t g_num_processors;
 
 extern VOLATILE(int32_t) g_fSuspensionPending;
 
-extern uint32_t g_yieldProcessorScalingFactor;
-
 ::IGCHandleManager*  CreateGCHandleManager();
 
 namespace WKS {
index c8a1596..e882431 100644 (file)
@@ -37,8 +37,6 @@ uint32_t* g_gc_card_table;
 
 VOLATILE(int32_t) g_fSuspensionPending = 0;
 
-uint32_t g_yieldProcessorScalingFactor = 1;
-
 #ifdef FEATURE_MANUALLY_MANAGED_CARD_BUNDLES
 uint32_t* g_gc_card_bundle_table;
 #endif
index 8909d29..b13cd24 100644 (file)
@@ -4563,14 +4563,3 @@ size_t gcard_of (uint8_t* object)
 {
     return (size_t)(object) / card_size;
 }
-
-inline
-void YieldProcessorScalingFactor()
-{
-    unsigned int n = g_yieldProcessorScalingFactor;
-    _ASSERTE(n != 0);
-    do
-    {
-        YieldProcessor();
-    } while (--n != 0);
-}