Added the ability to specify a Spin Count Unit via a GC Configuration
authorMukund Raghav Sharma (Moko) <68247673+mrsharm@users.noreply.github.com>
Thu, 6 Apr 2023 22:56:05 +0000 (15:56 -0700)
committerGitHub <noreply@github.com>
Thu, 6 Apr 2023 22:56:05 +0000 (15:56 -0700)
commitaca37006c41948c83873f4afa779998bc328bd61
tree399e2f813d1f8438dec280d57d73da95d8f3461d
parent47aab33f042271a8e6ee0f615a0977c213dfb7ab
Added the ability to specify a Spin Count Unit via a GC Configuration

Added the ability to specify a Spin Count Unit via a GC Configuration and make use of this value in the SetYieldProcessorScalingFactor function if the value is valid. If this configuration is not specified, we default to 0 and fall back to the original logic.
src/coreclr/gc/gc.cpp
src/coreclr/gc/gcconfig.h
src/coreclr/gc/gcpriv.h