You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/03/30 18:23:47 UTC

[GitHub] [incubator-nuttx-apps] xiaoxiang781216 commented on pull request #1112: testing/mm: add memory boundary realloc test.

xiaoxiang781216 commented on pull request #1112:
URL: https://github.com/apache/incubator-nuttx-apps/pull/1112#issuecomment-1083470255


   @masayuki2009 the change ensure the heap memory align with MM_MIN_CHUNK, which is a core heap manager assumption. Why this issue isn't reported before? Because the default config(CONFIG_MM_SMALL=n), 2 * SIZEOF_MM_ALLOCNODE(2 * 8)(start + end node) just equals MM_MIN_CHUNK(16). But once CONFIG_MM_SMALL is enabled, 2 * SIZEOF_MM_ALLOCNODE become 2 * 4(8).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org