This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit e7eea35bee0afbafc723a1eef809f40d2d13be3e Author: Marco Casaroli <[email protected]> AuthorDate: Tue Nov 17 12:23:59 2026 +0100 Documentation/mm: Give the current heap alignment. The memory management page says that all allocations are aligned to 8 or 4 bytes. The alignment is CONFIG_MM_DEFAULT_ALIGNMENT: 16 by default on 64-bit architectures and 8 on the others. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]> --- Documentation/os/memory/index.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/os/memory/index.rst b/Documentation/os/memory/index.rst index e3335f5f6ba..716a2551c95 100644 --- a/Documentation/os/memory/index.rst +++ b/Documentation/os/memory/index.rst @@ -37,8 +37,9 @@ Memory Models * Overhead: Either 8- or 4-bytes per allocation for large and small models, respectively. - * Alignment: All allocations are aligned to 8- or 4-bytes for large - and small models, respectively. + * Alignment: All allocations are aligned to + ``CONFIG_MM_DEFAULT_ALIGNMENT`` bytes. The default is 16 on 64-bit + architectures and 8 on the others. Multiple Heaps ~~~~~~~~~~~~~~
