os/kernel/debug: Improve memory leak checker with sorted array-based lookup. - #7498
Open
prathamrajbhatt-456 wants to merge 1 commit into
Open
os/kernel/debug: Improve memory leak checker with sorted array-based lookup.#7498prathamrajbhatt-456 wants to merge 1 commit into
prathamrajbhatt-456 wants to merge 1 commit into
Conversation
…lookup - Replace hash table with sorted array and binary search for better performance - Add support for detecting interior pointers within allocated structures - Improve region tracking with per-region address bounds
pcs1265
reviewed
Aug 31, 2026
pcs1265
left a comment
Member
There was a problem hiding this comment.
Doesn't the inspection time increase significantly when checking pointers inside the structures?
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Wi-Fi team encountered memory leak issues in the Wi-Fi code, and we with Wi-Fi team found that the mem_leak tool was not considering struct interior pointers and report it as memory leak. This happens when a structure is referenced through one of its members rather than through the base pointer returned by malloc.
Added support for interior pointer detection, per-region tracking, and overflow detection for incomplete results.