[riot-notifications] [RIOT-OS/RIOT] Preemption of malloc on AVR (#10842)
notifications at github.com
Thu Jan 24 10:00:41 CET 2019
> e.g., network device drivers
For a similar reason (locking the mutex of the SPI bus) running code in interrupt context is avoided for network drivers anyway. I personally would try to avoid dynamic memory management on constrained devices in general, and during ISR in particular.
Btw: The [TLSF-based allocator](https://doc.riot-os.org/group__pkg__tlsf__malloc.html) does disable interrupts during `malloc()`/`free()`. So assume this approach has been proven to work in practice. Maybe it should be considered to use that allocator by default?
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