Commit 408aaa2
committed
fix(anr): Align stack collection limit with queue capacity and avoid closing caller-owned stream
- Changed MAX_NUM_STACKS to match queue capacity (120 instead of 151) to prevent stack eviction
- Removed try-with-resources in toStream to avoid closing the caller-owned OutputStream1 parent 034445f commit 408aaa2
File tree
2 files changed
+4
-6
lines changed- sentry-android-core/src/main/java/io/sentry/android/core/anr
2 files changed
+4
-6
lines changedLines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
81 | 79 | | |
82 | 80 | | |
83 | 81 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
0 commit comments