Skip to content

Conversation

@sunhaosheng
Copy link
Contributor

@sunhaosheng sunhaosheng commented Dec 31, 2025

  • Add shrink logic in sys_brk: when the new break is lower than the current top, unmap the corresponding pages
  • Only reclaim pages above the initially mapped heap region (USER_HEAP_SIZE) to avoid breaking the ELF-loaded heap

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