- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 372
chore: Increase maximum stacktrace length to 500 #6536
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
|  | @@ -32,7 +32,7 @@ | |
| extern "C" { | ||
| #endif | ||
|  | ||
| #define MAX_STACKTRACE_LENGTH 100 | ||
| #define MAX_STACKTRACE_LENGTH 500 | ||
|  | ||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: Increasing  🔍 Detailed AnalysisIncreasing  💡 Suggested FixReduce  🤖 Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 
 | ||
| /** Initialize a stack cursor for a machine context. | ||
| * | ||
|  | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
h: This has a significant impact on memory usage when allocating an array of SentryThreadInfo heresentry-cocoa/Sources/Sentry/SentryDefaultThreadInspector.m
Line 163 in d14bd20
because we allocate an array of stackEntries here
sentry-cocoa/Sources/Sentry/SentryDefaultThreadInspector.m
Lines 23 to 27 in d14bd20
We should evaluate what the impact is and see if it's acceptable. I'm pretty sure we can improve this for the
SentryDefaultThreadInspector, so it uses less memory.This also came up in #1923 (comment)