From 430fe2a8d2a3ba00b695d3986b6104487a7937ad Mon Sep 17 00:00:00 2001
From: dieggsy <dieggsy@pm.me>
Date: Sat, 10 Apr 2021 13:36:18 -0400
Subject: [PATCH] Increase maximum heap size on 64-bit machines
---
runtime.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/runtime.c b/runtime.c
index 51cfa7be..dfc2e0ee 100644
a
|
b
|
static C_TLS int timezone; |
150 | 150 | |
151 | 151 | #ifdef C_SIXTY_FOUR |
152 | 152 | # define DEFAULT_STACK_SIZE (1024 * 1024) |
| 153 | # define DEFAULT_MAXIMAL_HEAP_SIZE 0x7ffffffffffffff0 |
153 | 154 | #else |
154 | 155 | # define DEFAULT_STACK_SIZE (256 * 1024) |
| 156 | # define DEFAULT_MAXIMAL_HEAP_SIZE 0x7ffffff0 |
155 | 157 | #endif |
156 | 158 | |
157 | 159 | #define DEFAULT_SYMBOL_TABLE_SIZE 2999 |
… |
… |
static C_TLS int timezone; |
159 | 161 | #define DEFAULT_HEAP_SIZE DEFAULT_STACK_SIZE |
160 | 162 | #define MINIMAL_HEAP_SIZE DEFAULT_STACK_SIZE |
161 | 163 | #define DEFAULT_SCRATCH_SPACE_SIZE 256 |
162 | | #define DEFAULT_MAXIMAL_HEAP_SIZE 0x7ffffff0 |
163 | 164 | #define DEFAULT_HEAP_GROWTH 200 |
164 | 165 | #define DEFAULT_HEAP_SHRINKAGE 50 |
165 | 166 | #define DEFAULT_HEAP_SHRINKAGE_USED 25 |