diff options
| author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-12-03 01:40:52 +0200 |
|---|---|---|
| committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-12-03 01:40:52 +0200 |
| commit | 75feece208fbf48c27099a4279cefcef42de4751 (patch) | |
| tree | fe48127841bde4e7b5df7f58fbba7e6be5d9f778 /py/gc.c | |
| parent | 0077958ad0d278c87620ee8ead9a9aea80f1663d (diff) | |
py/gc: Make GC block size be configurable.
Diffstat (limited to 'py/gc.c')
| -rw-r--r-- | py/gc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -46,8 +46,8 @@ // make this 1 to dump the heap each time it changes #define EXTENSIVE_HEAP_PROFILING (0) -#define WORDS_PER_BLOCK (4) -#define BYTES_PER_BLOCK (WORDS_PER_BLOCK * BYTES_PER_WORD) +#define WORDS_PER_BLOCK ((MICROPY_BYTES_PER_GC_BLOCK) / BYTES_PER_WORD) +#define BYTES_PER_BLOCK (MICROPY_BYTES_PER_GC_BLOCK) // ATB = allocation table byte // 0b00 = FREE -- free block |
