summaryrefslogtreecommitdiff
path: root/src/vm
diff options
context:
space:
mode:
authorDavid Mason <davmason@microsoft.com>2018-04-02 17:04:23 -0700
committerGitHub <noreply@github.com>2018-04-02 17:04:23 -0700
commitf5cb31cdf5cce0516d2e20fe38e72bc3fcd947ae (patch)
tree263c896654c1ced0598e3a0d1949cb657222612d /src/vm
parentc1142249bba77bc3bbe35d7806d9dc0eafaed535 (diff)
downloadcoreclr-f5cb31cdf5cce0516d2e20fe38e72bc3fcd947ae.tar.gz
coreclr-f5cb31cdf5cce0516d2e20fe38e72bc3fcd947ae.tar.bz2
coreclr-f5cb31cdf5cce0516d2e20fe38e72bc3fcd947ae.zip
[local gc] gc spinning part 1 (#17341)
Add an api so the VM can tell the GC how long to spin for to normalize across processor families.
Diffstat (limited to 'src/vm')
-rw-r--r--src/vm/yieldprocessornormalized.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vm/yieldprocessornormalized.cpp b/src/vm/yieldprocessornormalized.cpp
index 94daeb42f5..f58f1d9c1c 100644
--- a/src/vm/yieldprocessornormalized.cpp
+++ b/src/vm/yieldprocessornormalized.cpp
@@ -92,6 +92,9 @@ static void InitializeYieldProcessorNormalized()
g_yieldsPerNormalizedYield = yieldsPerNormalizedYield;
g_optimalMaxNormalizedYieldsPerSpinIteration = optimalMaxNormalizedYieldsPerSpinIteration;
s_isYieldProcessorNormalizedInitialized = true;
+
+
+ GCHeapUtilities::GetGCHeap()->SetYieldProcessorScalingFactor(yieldsPerNormalizedYield);
}
void EnsureYieldProcessorNormalizedInitialized()