Skip to content

Commit 59a41e8

Browse files
committed
py/qstr: Fix calc of qstr memory usage, due to new qstr chunk allocation.
1 parent d644240 commit 59a41e8

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

py/qstr.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,11 +262,7 @@ void qstr_pool_info(mp_uint_t *n_pool, mp_uint_t *n_qstr, mp_uint_t *n_str_data_
262262
*n_pool += 1;
263263
*n_qstr += pool->len;
264264
for (const byte **q = pool->qstrs, **q_top = pool->qstrs + pool->len; q < q_top; q++) {
265-
#if MICROPY_ENABLE_GC
266-
*n_str_data_bytes += gc_nbytes(*q); // this counts actual bytes used in heap
267-
#else
268265
*n_str_data_bytes += Q_GET_ALLOC(*q);
269-
#endif
270266
}
271267
#if MICROPY_ENABLE_GC
272268
*n_total_bytes += gc_nbytes(pool); // this counts actual bytes used in heap

0 commit comments

Comments
 (0)