[riot-notifications] [RIOT-OS/RIOT] Preemption of malloc on AVR (#10842)

Marian Buschsieweke 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:
https://github.com/RIOT-OS/RIOT/issues/10842#issuecomment-457118643
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190124/16d25781/attachment-0001.html>


More information about the notifications mailing list