summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorPeter Zhu <peter.zhu@shopify.com>2021-04-15 02:00:34 +0000
committerPeter Zhu <peter@peterzhu.ca>2021-04-15 10:10:23 -0400
commitf1f08f5b691230840d6ea5dc4ac3f5cf113e8120 (patch)
tree7631ed2c87e5cfd6c13817a0dd4922f2cc2b5111 /gc.c
parent26888d5e032202328e10881550477fd036c8e805 (diff)
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.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4382
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c1
1 files changed, 0 insertions, 1 deletions
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());