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
......@@ -30,7 +30,8 @@
// 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);
// Stack top at the start of program
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment