[riot-notifications] [RIOT-OS/RIOT] sys/oneway-malloc: export oneway_malloc() (#15474)
notifications at github.com
Thu Nov 19 17:17:26 CET 2020
The RIOT community cares a lot about code quality.
Therefore, before describing what your contribution is about, we would like
you to make sure that your modifications are compliant with the RIOT
coding conventions, see https://github.com/RIOT-OS/RIOT/wiki/Coding-conventions.
### Contribution description
The one-way malloc() implementation is declared weak, so it will be overwritten if libc provides a proper implementation.
For some situations however it is useful to allocate a block of memory on init, that is not going to be freed.
Here we don't need to pay the additional accounting overhead of `malloc()`, a one-way malloc would be entirely sufficient.
For this, make the one-way malloc implementation accessible as `oneway_malloc()`.
### Testing procedure
Details steps to test your contribution:
- which test/example to compile for which board and is there a 'test' command
- how to know that it was not working/available in master
- the expected success test output
### Issues/PRs references
You can view, comment on, or merge this pull request online at:
-- Commit Summary --
* sys/oneway-malloc: export oneway_malloc()
-- File Changes --
M sys/oneway-malloc/include/malloc.h (7)
M sys/oneway-malloc/oneway-malloc.c (10)
-- Patch Links --
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications