File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4646// make this 1 to dump the heap each time it changes
4747#define EXTENSIVE_HEAP_PROFILING (0)
4848
49- #define WORDS_PER_BLOCK (4 )
50- #define BYTES_PER_BLOCK (WORDS_PER_BLOCK * BYTES_PER_WORD )
49+ #define WORDS_PER_BLOCK ((MICROPY_BYTES_PER_GC_BLOCK) / BYTES_PER_WORD )
50+ #define BYTES_PER_BLOCK (MICROPY_BYTES_PER_GC_BLOCK )
5151
5252// ATB = allocation table byte
5353// 0b00 = FREE -- free block
Original file line number Diff line number Diff line change 9696/*****************************************************************************/
9797/* Memory allocation policy */
9898
99+ // Number of bytes in memory allocation/GC block. Any size allocated will be
100+ // rounded up to be multiples of this.
101+ #define MICROPY_BYTES_PER_GC_BLOCK (4 * BYTES_PER_WORD)
102+
99103// Number of words allocated (in BSS) to the GC stack (minimum is 1)
100104#ifndef MICROPY_ALLOC_GC_STACK_SIZE
101105#define MICROPY_ALLOC_GC_STACK_SIZE (64)
You can’t perform that action at this time.
0 commit comments