From 577f8b84113fdf5ff001732b93da6733842123ec Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Mon, 15 Apr 2019 16:30:00 -0700 Subject: [PATCH] Delete unused YieldProcessorScalingFactor from GC (#23994) --- src/gc/gc.h | 2 -- src/gc/gccommon.cpp | 2 -- src/gc/gcpriv.h | 11 ----------- 3 files changed, 15 deletions(-) diff --git a/src/gc/gc.h b/src/gc/gc.h index 225aa6b..ecf2e1f 100644 --- a/src/gc/gc.h +++ b/src/gc/gc.h @@ -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 { diff --git a/src/gc/gccommon.cpp b/src/gc/gccommon.cpp index c8a1596..e882431 100644 --- a/src/gc/gccommon.cpp +++ b/src/gc/gccommon.cpp @@ -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 diff --git a/src/gc/gcpriv.h b/src/gc/gcpriv.h index 8909d29..b13cd24 100644 --- a/src/gc/gcpriv.h +++ b/src/gc/gcpriv.h @@ -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); -} -- 2.7.4