Skip to content

Commit

Permalink
testing smth
Browse files Browse the repository at this point in the history
  • Loading branch information
StavromulaBeta committed Sep 9, 2024
1 parent 371acfb commit 91acec6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/runtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ static void init_general_purpose_buffer(void)
static void init_stack(void)
{
stack.absolute_start = stack.top = stack.start
= mmap(ALLOC_START, ALLOC_SIZE, MEM_PROT, MEM_FLAGS, -1, 0);
= mmap(ALLOC_START+2l*TERABYTE, ALLOC_SIZE, MEM_PROT, MEM_FLAGS, -1, 0);
}

__attribute__((hot))
Expand Down Expand Up @@ -1263,8 +1263,10 @@ static uint8_t gc_bitmap_get(gc_heap* heap, size_t index)

static void gc_init_heap(gc_heap* heap)
{
heap->bitmap = mmap(ALLOC_START, ALLOC_SIZE/32, MEM_PROT, MEM_FLAGS, -1, 0);
heap->start = mmap(ALLOC_START, ALLOC_SIZE, MEM_PROT, MEM_FLAGS, -1, 0);
static int start = 4;
heap->bitmap = mmap(ALLOC_START+start*TERABYTE, ALLOC_SIZE/32, MEM_PROT, MEM_FLAGS, -1, 0);
start += 2;
heap->start = mmap(ALLOC_START+start*TERABYTE, ALLOC_SIZE, MEM_PROT, MEM_FLAGS, -1, 0);
heap->alloc = 0;
gc_bitmap_set(heap, 0, ALLOC);
}
Expand Down

0 comments on commit 91acec6

Please sign in to comment.