aboutsummaryrefslogtreecommitdiff
path: root/py/mpstate.h
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2022-05-04 12:12:11 +1000
committerDamien George <damien@micropython.org>2022-05-05 10:31:50 +1000
commitfca5701f74b784834d1af22d10988a1d0fddddaf (patch)
treef98c1d6c9e1473a13455857af0563760abcd08ec /py/mpstate.h
parent965747bd97183a85db56e8d79c15c589df87cdd6 (diff)
py/malloc: Introduce m_tracked_calloc, m_tracked_free functions.
Enabled by MICROPY_TRACKED_ALLOC. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/mpstate.h')
-rw-r--r--py/mpstate.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/mpstate.h b/py/mpstate.h
index ab6090e1a..bc1aaf1e0 100644
--- a/py/mpstate.h
+++ b/py/mpstate.h
@@ -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;