diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2020-02-11 17:06:24 -0800 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2020-02-11 17:06:24 -0800 |
| commit | 36e6cc8febf7f744f61772d29eed68d9ebb57200 (patch) | |
| tree | d7ca610709815421707a1b8cee4b2ec06b25af8e /py/mpstate.h | |
| parent | a4d197a6efeb8af9fc59be95689b2c703c5f9cdb (diff) | |
Track first free atb for multiple block sizes.
This speeds up cases where no single block allocations happen while
Python code is allocating other block sizes.
Diffstat (limited to 'py/mpstate.h')
| -rw-r--r-- | py/mpstate.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/mpstate.h b/py/mpstate.h index a3d7e5dcc..a5815776a 100644 --- a/py/mpstate.h +++ b/py/mpstate.h @@ -92,7 +92,7 @@ typedef struct _mp_state_mem_t { size_t gc_alloc_threshold; #endif - size_t gc_first_free_atb_index; + size_t gc_first_free_atb_index[MICROPY_ATB_INDICES]; size_t gc_last_free_atb_index; #if MICROPY_PY_GC_COLLECT_RETVAL |
