Revert "TLSF memory allocator. Less free flash, moar free ram. (#3572)" (#3651)

* Revert "TLSF memory allocator. Less free flash, moar free ram. (#3572)"

This reverts commit 1d17206e23.

* Fix PVS warnings

* github: logging for ticket number checks to stdout

* memgr: removed offending todo

---------

Co-authored-by: hedger <hedger@nanode.su>
This commit is contained in:
あく
2024-05-16 15:43:27 +01:00
committed by GitHub
parent 50bee67748
commit 7c63bf7574
23 changed files with 651 additions and 640 deletions

View File

@@ -40,17 +40,9 @@ size_t memmgr_heap_get_thread_memory(FuriThreadId thread_id);
*/
size_t memmgr_heap_get_max_free_block(void);
typedef bool (*BlockWalker)(void* pointer, size_t size, bool used, void* context);
/**
* @brief Walk through all heap blocks
* @warning This function will lock memory manager and may cause deadlocks if any malloc/free is called inside the callback.
* Also, printf and furi_log contains malloc calls, so do not use them.
*
* @param walker
* @param context
/** Print the address and size of all free blocks to stdout
*/
void memmgr_heap_walk_blocks(BlockWalker walker, void* context);
void memmgr_heap_printf_free_blocks(void);
#ifdef __cplusplus
}