Skip to content

Conversation

@keith-packard
Copy link
Contributor

A couple of minor fixes for the common malloc implementation:

  1. Make sure the arena is at least double aligned
  2. Increase default arena to make more tests work.

@keith-packard keith-packard requested a review from nashif as a code owner May 30, 2023 21:01
@zephyrbot zephyrbot added the area: C Library C Standard Library label May 30, 2023
@zephyrbot zephyrbot requested review from cfriedt and stephanosio May 30, 2023 21:01
arm, arc and riscv all have special cases for malloc arena alignment that
might be smaller than the minimum required for a C allocator. In
particular, the riscv value might actually be zero, which turns out to be
an invalid alignment value.

Make sure all of these have alignment that meets the C language
requirements for allocation alignment.

Signed-off-by: Keith Packard <[email protected]>
This matches the size that would be used with the newlib_nano configuration
and allows several tests to complete which would otherwise fail due to
insufficient heap space.

Signed-off-by: Keith Packard <[email protected]>
@nashif nashif merged commit b97a4a5 into zephyrproject-rtos:main May 31, 2023
@keith-packard keith-packard deleted the common-malloc-fixes branch June 1, 2023 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: C Library C Standard Library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants