Repository navigation
fix: bound profiler memory growth by trimming interned call stacks - #5503
Merged
Merged
@sentry/warden / warden: find-bugs
completed
Aug 31, 2026
1 issue
find-bugs: Found 1 issue (1 high)
High
AddSample keeps processing after trim instead of skipping the invalidated sample - `src/Sentry.Profiling/SampleProfileBuilder.cs:57-61`
When trim generation changes, clear _stackIndexes and return immediately; the current event's CallStackIndex was invalidated by TrimLiveSessionState, and continuing can cache a bad stack under a recycled index.
⏱ 31m 33s · 2.6M in / 244.5k out · $3.83
Annotations
Check failure on line 61 in src/Sentry.Profiling/SampleProfileBuilder.cs
sentry-warden / warden: find-bugs
AddSample keeps processing after trim instead of skipping the invalidated sample
When trim generation changes, clear `_stackIndexes` and return immediately; the current event's CallStackIndex was invalidated by TrimLiveSessionState, and continuing can cache a bad stack under a recycled index.
Loading