Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable deleting call counting stubs
It's currently incompatible with the W^X changes, and there's another rare issue that may cause a crash when checking if a precode target is a jump stub. Memory impact on x64: Calling and tiering up ~10 K empty methods causes the following amount of memory to remain. Methods with stubs: 10139 Memory usage: ~876 KB Memory usage per method with stub: ~88.5 B Committed memory at the end after GC: ~9.5 MB On a larger test case that compiles Roslyn sources 16 times in the same process, the numbers are similar. Methods with stubs: 22141 Memory usage: ~1913 KB Memory usage per method with stub: ~88.5 B Committed memory at the end after GC: 90-95 MB It should be possible to reduce the leaked memory per method with stub from ~88.5 B to about 10-16 B depending on architecture in the future if necessary. - Fixes dotnet#66924 - Fixes dotnet#66424
- Loading branch information