Ticket #1675: 0001-Increase-maximum-heap-size-on-64-bit-machines.patch

File 0001-Increase-maximum-heap-size-on-64-bit-machines.patch, 1.1 KB (added by Diego, 3 years ago)
  • runtime.c

    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; 
    150150
    151151#ifdef C_SIXTY_FOUR
    152152# define DEFAULT_STACK_SIZE            (1024 * 1024)
     153# define DEFAULT_MAXIMAL_HEAP_SIZE     0x7ffffffffffffff0
    153154#else
    154155# define DEFAULT_STACK_SIZE            (256 * 1024)
     156# define DEFAULT_MAXIMAL_HEAP_SIZE     0x7ffffff0
    155157#endif
    156158
    157159#define DEFAULT_SYMBOL_TABLE_SIZE      2999
    static C_TLS int timezone; 
    159161#define DEFAULT_HEAP_SIZE              DEFAULT_STACK_SIZE
    160162#define MINIMAL_HEAP_SIZE              DEFAULT_STACK_SIZE
    161163#define DEFAULT_SCRATCH_SPACE_SIZE     256
    162 #define DEFAULT_MAXIMAL_HEAP_SIZE      0x7ffffff0
    163164#define DEFAULT_HEAP_GROWTH            200
    164165#define DEFAULT_HEAP_SHRINKAGE         50
    165166#define DEFAULT_HEAP_SHRINKAGE_USED    25