Skip to content

Bound leak-check history to prevent unbounded memory growth#2

Merged
zekageri merged 1 commit intomainfrom
feature/leakcheck-ring-buffer
Feb 25, 2026
Merged

Bound leak-check history to prevent unbounded memory growth#2
zekageri merged 1 commit intomainfrom
feature/leakcheck-ring-buffer

Conversation

@zekageri
Copy link
Collaborator

Summary

  • add maxLeakChecksInHistory to MemoryMonitorConfig (default 16)
  • store leak checkpoints/results in deque-backed containers
  • trim leak checkpoint/result history after each append to keep bounded retention
  • document the new config option in README

Why

markLeakCheckPoint() previously grew internal checkpoint/result containers indefinitely, which caused leak-check bookkeeping memory to grow over long uptime.

Testing

  • not run in this environment (ESP/FreeRTOS target runtime)

@zekageri zekageri merged commit 13241fe into main Feb 25, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant