Skip to content

Commit ecfd787

Browse files
stephanosiogalak
authored andcommitted
tests: lib: mem_alloc: Increase malloc heap size for newlib test
The newlib full malloc implementation (i.e. non-nano) requests a relatively large 4096-byte memory chunk through `_sbrk`, which exceeds the configured 512-byte heap size. This commit changes `CONFIG_NEWLIB_LIBC_ALIGNED_HEAP_SIZE` from 512 to 8192 in order to increase the size of the heap memory used by the newlib malloc function. For more details, refer to the issue #21167. Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent e7617cf commit ecfd787

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CONFIG_ZTEST=y
22
CONFIG_NEWLIB_LIBC=y
33
CONFIG_NEWLIB_LIBC_NANO=n
4-
CONFIG_NEWLIB_LIBC_ALIGNED_HEAP_SIZE=512
4+
CONFIG_NEWLIB_LIBC_ALIGNED_HEAP_SIZE=8192
55
CONFIG_TEST_USERSPACE=y

0 commit comments

Comments
 (0)