JIT: add option to use interlocked add for PGO edge count updates (#81934)
authorAndy Ayers <andya@microsoft.com>
Fri, 10 Feb 2023 22:37:12 +0000 (14:37 -0800)
committerGitHub <noreply@github.com>
Fri, 10 Feb 2023 22:37:12 +0000 (14:37 -0800)
commitac2341c3cee452d394b23148ce7357309d098af8
tree434af7b95e09de2a039bc5f24ae0a1bdb919c9bc
parent5a89bbe3a7a512e5304dfbc502c8553c7b5ebb38
JIT: add option to use interlocked add for PGO edge count updates (#81934)

Mainly intended for use in determining what is leading to some consistency issues
with our current edge profiles. We might consider enabling this in some of our
static PGO collections.

Enabled via JitInterlockedProfile=1.
src/coreclr/jit/fgprofile.cpp
src/coreclr/jit/jitconfigvalues.h