byterun gc integration fix: move __gc_stack_top by 1

This commit is contained in:
ProgramSnail 2025-05-18 12:02:34 +03:00
parent c5dfe649e0
commit 956dde00a3
5 changed files with 57 additions and 52 deletions

View file

@ -37,7 +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
#define MINIMUM_HEAP_CAPACITY (640000)
#define MINIMUM_HEAP_CAPACITY (16)
#include <stdbool.h>
#include <stddef.h>