-
Notifications
You must be signed in to change notification settings - Fork 3
Removing dynamic memory features #11
Description
Planned removal of dynamic memory features because they are intrinsically incompatible with memory protection units (a safety feature on many MCUs).
It is also determined that in reality most of the operating system object are created statically at compile time. Although the RTOS supports creating static objects, it should be made to be the primary way of doing things.
Dynamic memory may be provided as a feature completely separately from the RTOS. Allocation of memory from a specific memory region should be supported because most memory protection units only supports a limited number of regions. Moving dynamic memory out of RTOS would mean that it no longer performs garbage collection, that is, if a thread quits or objects get destroyed, the operating system will not try to reclaim the memory because it is completely unaware.