1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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.
This commit is contained in:
Peter Zhu 2021-04-15 02:00:34 +00:00 committed by Peter Zhu
parent 26888d5e03
commit f1f08f5b69
Notes: git 2021-04-15 23:10:50 +09:00

1
gc.c
View file

@ -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());