mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 20:41:14 +00:00
heap: Make weak declaration for the alloc and free callbacks
- Fix "test get allocated size" - Add tests for the free / alloc hooks - Call alloc function hook on malloc/realloc/calloc base functions - Add caps parameter to the allocation hook function
This commit is contained in:

committed by
Mahavir Jain

parent
1588c61c7b
commit
5a1f0cd63c
@@ -370,7 +370,7 @@ multi_heap_handle_t multi_heap_register(void *start, size_t size)
|
||||
return multi_heap_register_impl(start, size);
|
||||
}
|
||||
|
||||
static inline void subtract_poison_overhead(size_t *arg) {
|
||||
static inline __attribute__((always_inline)) void subtract_poison_overhead(size_t *arg) {
|
||||
if (*arg > POISON_OVERHEAD) {
|
||||
*arg -= POISON_OVERHEAD;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user