Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Better diagnostic for collected delegate #15465
Current version of CoreCLR contains code for supporting MDAs. It is compiled and some parts of it were removed as dead. MDAs are very useful to detect application bugs that related to transitions beetween managed and unmanaged code, for example, to detect calls of collected delegates.
I've tried to enable current implementation of MDAs in coreclr (#15464):
After several fixes CallbackOnCollectedDelegate MDA starts work for me:
Is it correct approach to enable MDAs or have you another plans about it?
This diagnostic for calls on collected delegates should be on by default. There is no good reason why it needs to be a special runtime knob. @parjong started working towards it in #12731 by introducing
Doing these two things will make it better than what you get out of the MDA.