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/mpconfig.h | |
| parent | 0077958ad0d278c87620ee8ead9a9aea80f1663d (diff) | |
py/gc: Make GC block size be configurable.
Diffstat (limited to 'py/mpconfig.h')
| -rw-r--r-- | py/mpconfig.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index 1f01b3de5..922f865e2 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -96,6 +96,10 @@ /*****************************************************************************/ /* Memory allocation policy */ +// Number of bytes in memory allocation/GC block. Any size allocated will be +// rounded up to be multiples of this. +#define MICROPY_BYTES_PER_GC_BLOCK (4 * BYTES_PER_WORD) + // Number of words allocated (in BSS) to the GC stack (minimum is 1) #ifndef MICROPY_ALLOC_GC_STACK_SIZE #define MICROPY_ALLOC_GC_STACK_SIZE (64) |
