esp-idf/components/newlib/test_apps/newlib
Cody P Schafer 9e1e245477 fix(heap): memalign respect malloc_alwaysinternal_limit
This changes `memalign` (and `posix_memalign`) so that it uses an
allocation method with the same selection criteria (checking
`malloc_alwaysinternal_limit` and picking one of:

- always MALLOC_CAP_INTERNAL
- MALLOC_CAP_INTERNAL first with fallback
- MALLOC_CAP_SPIRAM first with fallback

`malloc_alwaysinternal_limit` is in turn set by the options
`CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL` and
`CONFIG_SPRIAM_USE_CAPS_ALLOC`.

This notably affects folks using esp-rs to build rust code for the
esp-idf, as all allocations from rust use `memalign`.

Merges https://github.com/espressif/esp-idf/pull/12375
2023-11-01 01:58:27 +08:00
..
main fix(heap): memalign respect malloc_alwaysinternal_limit 2023-11-01 01:58:27 +08:00
test_sbom feat(newlib): Add sbom manifest file 2023-10-13 19:15:03 +04:00
CMakeLists.txt
pytest_newlib.py feat(newlib): Add sbom manifest file 2023-10-13 19:15:03 +04:00
README.md
sdkconfig.ci.default ci: misc fixes for newlib test app 2023-05-10 11:14:15 +08:00
sdkconfig.ci.options ci: misc fixes for newlib test app 2023-05-10 11:14:15 +08:00
sdkconfig.ci.psram_esp32 ci: misc fixes for newlib test app 2023-05-10 11:14:15 +08:00
sdkconfig.ci.release_esp32
sdkconfig.ci.release_esp32c2
sdkconfig.ci.single_core_esp32
sdkconfig.defaults

Supported Targets ESP32 ESP32-C2 ESP32-C3 ESP32-C6 ESP32-H2 ESP32-S2 ESP32-S3