Skip to content

Minor improvements to 'ExceptionHelpers.SetErrorInfo' - #1824

Merged
Manodasan Wignarajah (manodasanW) merged 3 commits into
masterfrom
user/sergiopedri/exception-tweaks
Oct 22, 2024
Merged

Manodasan Wignarajah (manodasanW) merged 3 commits into
masterfrom
user/sergiopedri/exception-tweaks

Conversation

@Sergio0694

Copy link
Copy Markdown
Member

This PR includes just a couple of tweaks to ExceptionHelpers.SetErrorInfo:

  • Use WindowsCreateStringReference, since we can just pin the source text.
  • Avoid allocating a temporary IObjectReference object.

@Sergio0694 Sergio Pedri (Sergio0694) added performance Related to performance work gc Related to garbage collection labels Oct 14, 2024
@Sergio0694
Sergio Pedri (Sergio0694) force-pushed the user/sergiopedri/exception-tweaks branch from bd0b721 to 0327e44 Compare October 14, 2024 05:52
@manodasanW
Manodasan Wignarajah (manodasanW) deleted the user/sergiopedri/exception-tweaks branch October 22, 2024 03:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gc Related to garbage collection performance Related to performance work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants