Skip to content

Commit

Permalink
Fix macos tests by reducing heap size
Browse files Browse the repository at this point in the history
  • Loading branch information
StavromulaBeta committed Sep 9, 2024
1 parent a47cafa commit f85bf40
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/runtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#define MEGABYTE 1024l*KILOBYTE
#define GIGABYTE 1024l*MEGABYTE
#define TERABYTE 1024l*GIGABYTE
#define ALLOC_SIZE TERABYTE
#define ALLOC_SIZE 100l*GIGABYTE
#define ALLOC_START (void*)(42l * TERABYTE)

#ifdef GCTEST
Expand Down Expand Up @@ -2206,12 +2206,7 @@ static TABLE ___table (BLOCK expr)

static TABLE ___insert(ANY key, ANY value, TABLE d)
{
<<<<<<< HEAD
if unlikely(key.type == io || key.type == block || key.type == box) throw_error_fmt("Can't index a table with %s", ___show(key));
TABLE D = gc_malloc(sizeof *D);
=======
if unlikely(key.type == block || key.type == box) throw_error_fmt("Can't index a table with %s", ___show(key));
>>>>>>> 9d5f658 (More work towards generational gc)
if (!d)
{
TABLE D = gc_malloc(sizeof *D);
Expand Down

0 comments on commit f85bf40

Please sign in to comment.