dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.04k stars 4.68k forks source link

Implement GC stress for R2R code. #108249

Open VSadov opened 4 days ago

VSadov commented 4 days ago

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.

dotnet-policy-service[bot] commented 4 days ago

Tagging subscribers to this area: @mangod9 See info in area-owners.md if you want to be subscribed.

AndyAyersMS commented 4 days ago

Ah that reminds me of #10184 -- has it been 6 years since we had GC stress for prejitted code?