Commit 71cb208
fix(stability): cap history buffer on allocation failure instead of silently dropping data
When vector push_back fails due to heap fragmentation, cap maxSize to
current buffer size and switch to circular overwrite mode. Previously,
every subsequent addPoint call would also fail silently, stopping all
historical data recording permanently.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent d24b9c1 commit 71cb208
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
53 | 58 | | |
54 | 59 | | |
55 | 60 | | |
| |||
0 commit comments