Skip to content

Commit

Permalink
Remove redudant heap clear after gc
Browse files Browse the repository at this point in the history
  • Loading branch information
StavromulaBeta committed Sep 11, 2024
1 parent 8d98f37 commit 91d92c5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/runtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -1527,7 +1527,6 @@ static void gc_collect_root(uintptr_t* addr, gc_heap* source, gc_heap* dest)
static __attribute__((hot)) void gc_clear_heap(gc_heap* heap)
{
memset(heap->bitmap, 0x0, heap->alloc / 2 + 1);
memset(heap->start, 0x0, heap->alloc * 8 + 1);
heap->alloc = 0;
gc_bitmap_set(heap, 0, ALLOC);
}
Expand Down

0 comments on commit 91d92c5

Please sign in to comment.