Skip to content

Commit

Permalink
Revert "testing smth"
Browse files Browse the repository at this point in the history
This reverts commit 91acec6.
  • Loading branch information
StavromulaBeta committed Sep 9, 2024
1 parent 91acec6 commit d2ee555
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 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+2l*TERABYTE, ALLOC_SIZE, MEM_PROT, MEM_FLAGS, -1, 0);
= mmap(ALLOC_START, ALLOC_SIZE, MEM_PROT, MEM_FLAGS, -1, 0);
}

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

static void gc_init_heap(gc_heap* heap)
{
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->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);
heap->alloc = 0;
gc_bitmap_set(heap, 0, ALLOC);
}
Expand Down

0 comments on commit d2ee555

Please sign in to comment.