Skip to content

Commit 577f8b8

Browse files
authored
Delete unused YieldProcessorScalingFactor from GC (dotnet#23994)
1 parent a632640 commit 577f8b8

File tree

3 files changed

+0
-15
lines changed

3 files changed

+0
-15
lines changed

src/gc/gc.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,6 @@ extern "C" uint32_t g_num_processors;
141141

142142
extern VOLATILE(int32_t) g_fSuspensionPending;
143143

144-
extern uint32_t g_yieldProcessorScalingFactor;
145-
146144
::IGCHandleManager* CreateGCHandleManager();
147145

148146
namespace WKS {

src/gc/gccommon.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ uint32_t* g_gc_card_table;
3737

3838
VOLATILE(int32_t) g_fSuspensionPending = 0;
3939

40-
uint32_t g_yieldProcessorScalingFactor = 1;
41-
4240
#ifdef FEATURE_MANUALLY_MANAGED_CARD_BUNDLES
4341
uint32_t* g_gc_card_bundle_table;
4442
#endif

src/gc/gcpriv.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4563,14 +4563,3 @@ size_t gcard_of (uint8_t* object)
45634563
{
45644564
return (size_t)(object) / card_size;
45654565
}
4566-
4567-
inline
4568-
void YieldProcessorScalingFactor()
4569-
{
4570-
unsigned int n = g_yieldProcessorScalingFactor;
4571-
_ASSERTE(n != 0);
4572-
do
4573-
{
4574-
YieldProcessor();
4575-
} while (--n != 0);
4576-
}

0 commit comments

Comments
 (0)