From f1f08f5b691230840d6ea5dc4ac3f5cf113e8120 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Thu, 15 Apr 2021 02:00:34 +0000 Subject: [PATCH] Remove useless attribute set in init_mark_stack init_mark_stack already clears the mark stack so we do not need to set the attribute cache_size to zero. --- gc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/gc.c b/gc.c index e8c278fc7a..c3c84097eb 100644 --- a/gc.c +++ b/gc.c @@ -5574,7 +5574,6 @@ init_mark_stack(mark_stack_t *stack) MEMZERO(stack, mark_stack_t, 1); stack->index = stack->limit = STACK_CHUNK_SIZE; - stack->cache_size = 0; for (i=0; i < 4; i++) { add_stack_chunk_cache(stack, stack_chunk_alloc());