summaryrefslogtreecommitdiffstatshomepage
path: root/py/mpconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'py/mpconfig.h')
-rw-r--r--py/mpconfig.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index 1f01b3de55..922f865e2f 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)