From: Jan Kotas Date: Mon, 15 Apr 2019 23:30:00 +0000 (-0700) Subject: Delete unused YieldProcessorScalingFactor from GC (#23994) X-Git-Tag: accepted/tizen/unified/20190813.215958~46^2~64 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=577f8b84113fdf5ff001732b93da6733842123ec;p=platform%2Fupstream%2Fcoreclr.git Delete unused YieldProcessorScalingFactor from GC (#23994) --- 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); -}