Skip to content

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
seokhun-eom24:260211-rename-mm-reserved
Apr 7, 2026
Merged

os/mm: Rename reserved field to memory_state in mm_allocnode_s and mm_freenode_s#7152
sunghan-chang merged 1 commit intoSamsung:masterfrom
seokhun-eom24:260211-rename-mm-reserved

Conversation

@seokhun-eom24
Copy link
Copy Markdown
Contributor

@seokhun-eom24 seokhun-eom24 commented Feb 11, 2026

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.

@seokhun-eom24 seokhun-eom24 force-pushed the 260211-rename-mm-reserved branch 3 times, most recently from 2010590 to 83ad892 Compare February 12, 2026 04:59
@seokhun-eom24 seokhun-eom24 changed the title os/mm: Rename reserved field to leak_state in mm_allocnode_s and mm_freenode_s os/mm: Rename reserved field to memory_state in mm_allocnode_s and mm_freenode_s Feb 12, 2026
sunghan-chang
sunghan-chang previously approved these changes Apr 6, 2026
@sunghan-chang
Copy link
Copy Markdown
Contributor

@seokhun-eom24 Could you resolve the conflict?

Comment thread os/kernel/debug/mem_leak_checker.c Outdated
while (cur != NULL) {
if ((unsigned long)cur->node == value) {
if (cur->node->reserved == MEM_USED) {
if (cur->node->memory_state == MEM_USED) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should use the new definitions instead of MEM_USED, MEM_BROKEN and MEM_LEAK.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated to use MM_MEMORY_STATE_USED, MM_MEMORY_STATE_BROKEN and MM_MEMORY_STATE_LEAK.

…_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>
@seokhun-eom24 seokhun-eom24 force-pushed the 260211-rename-mm-reserved branch from c852729 to 16a56b3 Compare April 7, 2026 01:33
@seokhun-eom24
Copy link
Copy Markdown
Contributor Author

@seokhun-eom24 Could you resolve the conflict?

Resolved.

@sunghan-chang sunghan-chang merged commit 13cb7ec into Samsung:master Apr 7, 2026
21 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.

2 participants