Skip to content

Commit

Permalink
lone/memory/heap: delete value initialization loop
Browse files Browse the repository at this point in the history
The memory is zero filled. No need to set flags since they're all zero.
  • Loading branch information
matheusmoreira committed Dec 13, 2023
1 parent 74ea46a commit 20a3e13
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions source/lone/memory/heap.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ static struct lone_heap *lone_allocate_heap(struct lone_lisp *lone, size_t count
struct lone_heap *heap = lone_allocate(lone, size);
heap->next = 0;
heap->count = count;
for (i = 0; i < count; ++i) {
heap->values[i].live = false;
heap->values[i].marked = false;
}
return heap;
}

Expand Down

0 comments on commit 20a3e13

Please sign in to comment.