Skip to content

Commit 91d92c5

Browse files
Remove redudant heap clear after gc
1 parent 8d98f37 commit 91d92c5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/runtime.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1527,7 +1527,6 @@ static void gc_collect_root(uintptr_t* addr, gc_heap* source, gc_heap* dest)
15271527
static __attribute__((hot)) void gc_clear_heap(gc_heap* heap)
15281528
{
15291529
memset(heap->bitmap, 0x0, heap->alloc / 2 + 1);
1530-
memset(heap->start, 0x0, heap->alloc * 8 + 1);
15311530
heap->alloc = 0;
15321531
gc_bitmap_set(heap, 0, ALLOC);
15331532
}

0 commit comments

Comments
 (0)