Prevent race condition during pluginsd array operations by stelfrag · Pull Request #21628 · netdata/netdata
stelfrag
marked this pull request as ready for review
- Add detailed logging for refcount underflow and unexpected lifecycle violations. - Ensure proper cleanup of PRD_ARRAY and detached references with spinlock protection. - Refactor slot clearing logic to prevent races and double-releases during unslotting. - Track memory being freed only when exclusive ownership is confirmed. - Refine comments for better clarity on lifecycle handling and concurrency safeguards.
…a` references. - Reacquire dimensions during slot cache growth for independent lifecycle management. - Add detailed logging for slot cleanup and delayed free scenarios. - Track memory only when exclusive ownership of old arrays is confirmed.
… PRD_ARRAY and chart slots. Fix thread safety issues, optimize slot growth logic, and enhance error logging.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters