Skip to content

Commit

Permalink
HMMM
Browse files Browse the repository at this point in the history
  • Loading branch information
StavromulaBeta committed Sep 4, 2024
1 parent 297cc70 commit 4a84276
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/runtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ static void destructure_objects(ANY, ANY);
static void print_backtrace(int, const backtrace*, int);
#endif

static void* gc_malloc(size_t);
static volatile void* gc_malloc(size_t);
static void gc_collect(void);
static void gc_init(void);
static char* gc_strdup(char*);
Expand Down Expand Up @@ -1217,7 +1217,7 @@ static void gc_init(void)
}

__attribute__((noinline, hot, assume_aligned(sizeof(uint64_t)), returns_nonnull))
static void* gc_malloc(size_t sz)
static volatile void* gc_malloc(size_t sz)
{
static ptrdiff_t interval = 1024l*1024l*10;
interval -= sz;
Expand All @@ -1238,7 +1238,7 @@ static void* gc_malloc(size_t sz)
}

__attribute__((noinline, hot, assume_aligned(sizeof(uint64_t)), alloc_size(1), returns_nonnull))
static void* gc_flatmalloc(size_t sz)
static volatile void* gc_flatmalloc(size_t sz)
{
static ptrdiff_t interval = 1024l*1024l*10;
interval -= sz;
Expand Down

0 comments on commit 4a84276

Please sign in to comment.