aboutsummaryrefslogtreecommitdiff
path: root/py/qstr.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-10-13 15:52:06 +0100
committerDamien George <damien.p.george@gmail.com>2015-10-13 15:52:06 +0100
commit59a41e8fcdb80c1ee025ba782c69a8077b214602 (patch)
tree22e2e8966522c9e07a864b911e5526276ab7c040 /py/qstr.c
parentd6442407f57b47f09862810dfd54912860109be1 (diff)
py/qstr: Fix calc of qstr memory usage, due to new qstr chunk allocation.
Diffstat (limited to 'py/qstr.c')
-rw-r--r--py/qstr.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/py/qstr.c b/py/qstr.c
index afbf0ff9b..43f5ab5b2 100644
--- a/py/qstr.c
+++ b/py/qstr.c
@@ -262,11 +262,7 @@ void qstr_pool_info(mp_uint_t *n_pool, mp_uint_t *n_qstr, mp_uint_t *n_str_data_
*n_pool += 1;
*n_qstr += pool->len;
for (const byte **q = pool->qstrs, **q_top = pool->qstrs + pool->len; q < q_top; q++) {
- #if MICROPY_ENABLE_GC
- *n_str_data_bytes += gc_nbytes(*q); // this counts actual bytes used in heap
- #else
*n_str_data_bytes += Q_GET_ALLOC(*q);
- #endif
}
#if MICROPY_ENABLE_GC
*n_total_bytes += gc_nbytes(pool); // this counts actual bytes used in heap