From 4bfbd991e79cd14b15e3650c629ba68bc0ddc52e Mon Sep 17 00:00:00 2001 From: Roman Venediktov Date: Thu, 11 Jul 2024 13:12:04 +0200 Subject: [PATCH] Fix constants in gc.h --- runtime/gc.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/runtime/gc.h b/runtime/gc.h index b9eb0d12e..2cf7131d6 100644 --- a/runtime/gc.h +++ b/runtime/gc.h @@ -37,14 +37,7 @@ #define SET_FORWARD_ADDRESS(x, addr) (x = ((x & 3) | ((ptrt)(addr)))) // if heap is full after gc shows in how many times it has to be extended #define EXTRA_ROOM_HEAP_COEFFICIENT 2 -// #ifdef DEBUG_VERSION -// # define MINIMUM_HEAP_CAPACITY (8) -// #else -// # define MINIMUM_HEAP_CAPACITY (1 << 2) -//#define MINIMUM_HEAP_CAPACITY (1 << 30) -//#define MINIMUM_HEAP_CAPACITY (30) -#define MINIMUM_HEAP_CAPACITY (100) -// #endif +#define MINIMUM_HEAP_CAPACITY (64) #include #include @@ -102,7 +95,7 @@ void physically_relocate (memory_chunk *); // an auxiliary data structure called `extra_roots_pool`. // extra_roots_pool is a simple LIFO stack. During `pop` it compares that pop's // argument is equal to the current stack top. -#define MAX_EXTRA_ROOTS_NUMBER 4096 +#define MAX_EXTRA_ROOTS_NUMBER 32 typedef struct { int current_free;