mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 20:20:14 +01:00
unix: Allocate more heap memory by default on 64 bit machines.
Pointers are 2x bigger on 64 bit machines, so we should allocate twice the memory to have a comparable heap size.
This commit is contained in:
@@ -30,7 +30,8 @@
|
||||
|
||||
#if MICROPY_ENABLE_GC
|
||||
// Heap size of GC heap (if enabled)
|
||||
long heap_size = 128*1024;
|
||||
// Make it larger on a 64 bit machine, because pointers are larger.
|
||||
long heap_size = 128*1024 * (sizeof(machine_uint_t) / 4);
|
||||
#endif
|
||||
|
||||
// Stack top at the start of program
|
||||
|
||||
Reference in New Issue
Block a user