-
Notifications
You must be signed in to change notification settings - Fork 349
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
The SOF heap allocations are multi-purpose with distinct features:
- they can be cached or uncached
- there is a special allocation type for memory, that will never be freed back. Those allocations also panic if they fail
- there is an allocation type for larger memory block, e.g. for audio buffers
- some of those allocation types also initialise memory with 0s
Work is currently underway to simplify and make those allocations more robust. I'd like to consider several more changes:
- convert some of init-time no-free allocations to static objects in .data or .bss
- re-consider whether all 0-initialised allocations really need that. In particular large-size / buffer type allocations do that unconditionally, and it appears likely to me, that e.g. audio buffers will be completely overwritten with audio data so such initialisations have no value.
paulstelian97
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request