Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mem_malloc should call MEM_SANITY while holding a lock #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wumingcaiji
Copy link

MEM_SANITY ( called by mem_malloc ) need to be called under protected conditions.
because, plug_holes which is called by mem_free will merge neighboring unused blocks, which can lead to mem_link_valid return errors.

…tected conditions.

because, plug_holes which is called by mem_free will change data that used by mem_link_valid.
@wumingcaiji
Copy link
Author

sorry, The title is wrong.
It should be changed to ”mem_malloc should call MEM_SANITY while holding a lock“

@yarrick yarrick changed the title mem_malloc should be called MEM_SANITY while holding a lock mem_malloc should call MEM_SANITY while holding a lock Jun 30, 2024
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.

1 participant