It looks like we instrument code for GC stress only on the JIT-compile code path. Thus R2R code can't run through GC stress.
We should consider supporting R2R code in GC stress as well. It may just mean to call SetupGcCoverage at some appropriate point when R2R code is loaded.
Re: https://github.com/dotnet/runtime/pull/108117#issuecomment-2374840871
It looks like we instrument code for GC stress only on the JIT-compile code path. Thus R2R code can't run through GC stress.
We should consider supporting R2R code in GC stress as well. It may just mean to call
SetupGcCoverage
at some appropriate point when R2R code is loaded.