Closed
Description
We are seeing more intermittent crashes than usual in CI in last few days. All crash dumps point to a problem with this PR. The typical crash is AV, early during the xunit process startup, with a stacktrace like this:
#0 MethodDesc::HasNativeCodeSlot (this=0x25) at /__w/1/s/src/coreclr/src/vm/method.hpp:1886
#1 MethodDesc::GetNativeCode (this=0x25) at /__w/1/s/src/coreclr/src/vm/method.cpp:1028
#2 0x00007f2908dff137 in CallCountingManager::OnCallCountThresholdReached (transitionBlock=<optimized out>,
stubIdentifyingToken=<optimized out>) at /__w/1/s/src/coreclr/src/vm/callcounting.cpp:743
#3 0x00007f2908de3289 in OnCallCountThresholdReachedStub2 ()
at /__w/1/s/src/coreclr/src/pal/inc/unixasmmacrosamd64.inc:986
#4 0x00007f288f9887f9 in ?? ()
#5 0x00007f288df8b050 in ?? ()
#6 0x00007f288f4e91bb in ?? ()
#7 0x00007f286813041e in ?? ()