Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for new exception trace storage format #4635

Commits on Apr 23, 2024

  1. Add support for new exception trace storage format

    To eliminate global spinlock in stack trace saving to exceptions, the
    format of the stack trace storage has changed. The `_stackTrace` array
    can now be either a byte[] with the actual stack trace as before or an
    object[] where the first element references the byte[] with the actual
    stack trace and the following elements contain references to
    System.Resolver or System.Reflection.LoaderAllocator instances that keep
    code of methods that can be collected alive.
    
    This change modifies SOS to handle the object[] case properly, while
    staying compatible with the old way. Since the same code to get the
    stack trace was duplicated at two places, I have taken this opportunity
    to refactor it into a separate function.
    janvorli committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    05f7c72 View commit details
    Browse the repository at this point in the history