Skip to content
Snippets Groups Projects
Commit bd17e1b3 authored by Damien George's avatar Damien George
Browse files

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.
parent 9b1599c6
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment