[前][次][番号順一覧][スレッド一覧]

ruby-changes:65873

From: Peter <ko1@a...>
Date: Thu, 15 Apr 2021 23:10:45 +0900 (JST)
Subject: [ruby-changes:65873] f1f08f5b69 (master): Remove useless attribute set in init_mark_stack

https://git.ruby-lang.org/ruby.git/commit/?id=f1f08f5b69

From f1f08f5b691230840d6ea5dc4ac3f5cf113e8120 Mon Sep 17 00:00:00 2001
From: Peter Zhu <peter.zhu@s...>
Date: Thu, 15 Apr 2021 02:00:34 +0000
Subject: 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 e8c278f..c3c8409 100644
--- a/gc.c
+++ b/gc.c
@@ -5574,7 +5574,6 @@ init_mark_stack(mark_stack_t *stack) https://github.com/ruby/ruby/blob/trunk/gc.c#L5574
 
     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());
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]