os/mm: Rename reserved field to memory_state in mm_allocnode_s and mm_freenode_s#7152
Merged
sunghan-chang merged 1 commit intoSamsung:masterfrom Apr 7, 2026
Merged
Conversation
2010590 to
83ad892
Compare
sunghan-chang
previously approved these changes
Apr 6, 2026
Contributor
|
@seokhun-eom24 Could you resolve the conflict? |
| while (cur != NULL) { | ||
| if ((unsigned long)cur->node == value) { | ||
| if (cur->node->reserved == MEM_USED) { | ||
| if (cur->node->memory_state == MEM_USED) { |
Contributor
There was a problem hiding this comment.
I think we should use the new definitions instead of MEM_USED, MEM_BROKEN and MEM_LEAK.
Contributor
Author
There was a problem hiding this comment.
I updated to use MM_MEMORY_STATE_USED, MM_MEMORY_STATE_BROKEN and MM_MEMORY_STATE_LEAK.
83ad892 to
c852729
Compare
…_freenode_s Rename reserved field to memory_state in `mm_allocnode_s` and `mm_freenode_s` structures to track memory usage state. Add definitions for memory state values to enhance memory management debugging. Signed-off-by: seokhun-eom <seokhun.eom@samsung.com>
c852729 to
16a56b3
Compare
Contributor
Author
Resolved. |
sunghan-chang
approved these changes
Apr 7, 2026
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.
Rename reserved field to memory_state in
mm_allocnode_sandmm_freenode_sstructures to track memory usage state.Add definitions for memory state values to enhance memory management debugging.