diff options
author | Peter Zhu <[email protected]> | 2021-04-15 02:00:34 +0000 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2021-04-15 10:10:23 -0400 |
commit | f1f08f5b691230840d6ea5dc4ac3f5cf113e8120 (patch) | |
tree | 7631ed2c87e5cfd6c13817a0dd4922f2cc2b5111 /gc.c | |
parent | 26888d5e032202328e10881550477fd036c8e805 (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.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -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()); |