mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 20:20:14 +01:00
py/malloc: Introduce m_tracked_calloc, m_tracked_free functions.
Enabled by MICROPY_TRACKED_ALLOC. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -125,6 +125,10 @@ typedef struct _mp_state_vm_t {
|
||||
|
||||
qstr_pool_t *last_pool;
|
||||
|
||||
#if MICROPY_TRACKED_ALLOC
|
||||
struct _m_tracked_node_t *m_tracked_head;
|
||||
#endif
|
||||
|
||||
// non-heap memory for creating an exception if we can't allocate RAM
|
||||
mp_obj_exception_t mp_emergency_exception_obj;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user