summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2023-09-28 14:57:51 +1000
committerDamien George <damien@micropython.org>2023-09-29 14:11:26 +1000
commit79473691f2345bf343493143769e5730fe97cdf1 (patch)
treea68b65197912d4b4bdb364e50df22342a6119ca7
parent77ae0a0948d5c4de4efecefbba27f9aded9b79e2 (diff)
{mimxrt,powerpc,samd}/mpconfigport: Don't override parse chunk alloc.
This was copied from minimal/mpconfigport.h, but it doesn't make sense for general ports. Add a comment to minimal/mpconfigport.h to explain why it specifically overrides it. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
-rw-r--r--ports/mimxrt/mpconfigport.h1
-rw-r--r--ports/minimal/mpconfigport.h2
-rw-r--r--ports/powerpc/mpconfigport.h1
-rw-r--r--ports/samd/mpconfigport.h1
4 files changed, 2 insertions, 3 deletions
diff --git a/ports/mimxrt/mpconfigport.h b/ports/mimxrt/mpconfigport.h
index fb4acede5..d1fe17ee1 100644
--- a/ports/mimxrt/mpconfigport.h
+++ b/ports/mimxrt/mpconfigport.h
@@ -42,7 +42,6 @@ uint32_t trng_random_u32(void);
#else
#define MICROPY_GC_STACK_ENTRY_TYPE uint16_t
#endif
-#define MICROPY_ALLOC_PARSE_CHUNK_INIT (32)
#define MICROPY_ALLOC_PATH_MAX (256)
// MicroPython emitters
diff --git a/ports/minimal/mpconfigport.h b/ports/minimal/mpconfigport.h
index 0f50f8d38..56bef165f 100644
--- a/ports/minimal/mpconfigport.h
+++ b/ports/minimal/mpconfigport.h
@@ -17,6 +17,8 @@
#define MICROPY_ENABLE_EXTERNAL_IMPORT (1)
#define MICROPY_ALLOC_PATH_MAX (256)
+
+// Use the minimum headroom in the chunk allocator for parse nodes.
#define MICROPY_ALLOC_PARSE_CHUNK_INIT (16)
// type definitions for the specific machine
diff --git a/ports/powerpc/mpconfigport.h b/ports/powerpc/mpconfigport.h
index 084a461a4..06200a996 100644
--- a/ports/powerpc/mpconfigport.h
+++ b/ports/powerpc/mpconfigport.h
@@ -38,7 +38,6 @@
#define MICROPY_QSTR_BYTES_IN_HASH (1)
#define MICROPY_QSTR_EXTRA_POOL mp_qstr_frozen_const_pool
#define MICROPY_ALLOC_PATH_MAX (256)
-#define MICROPY_ALLOC_PARSE_CHUNK_INIT (16)
#define MICROPY_EMIT_X64 (0)
#define MICROPY_EMIT_THUMB (0)
#define MICROPY_EMIT_INLINE_THUMB (0)
diff --git a/ports/samd/mpconfigport.h b/ports/samd/mpconfigport.h
index c983d7e6d..011119fd1 100644
--- a/ports/samd/mpconfigport.h
+++ b/ports/samd/mpconfigport.h
@@ -34,7 +34,6 @@
// Memory allocation policies
#define MICROPY_GC_STACK_ENTRY_TYPE uint16_t
#define MICROPY_GC_ALLOC_THRESHOLD (0)
-#define MICROPY_ALLOC_PARSE_CHUNK_INIT (32)
#define MICROPY_ALLOC_PATH_MAX (256)
#define MICROPY_QSTR_BYTES_IN_HASH (1)