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

ruby-changes:63883

From: Aaron <ko1@a...>
Date: Fri, 4 Dec 2020 10:20:08 +0900 (JST)
Subject: [ruby-changes:63883] a9d773a288 (master): Revert "Skip repeated scan of object during compaction"

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

From a9d773a2888d37993db172023769822574f1c8e8 Mon Sep 17 00:00:00 2001
From: Aaron Patterson <tenderlove@r...>
Date: Thu, 3 Dec 2020 17:19:15 -0800
Subject: Revert "Skip repeated scan of object during compaction"

This seems to be breaking the build for some reason.

This command can reproduce it:

`make yes-test-all TESTS=--repeat-count=20`

This reverts commit 88bb1a672c49746972f4b15410fa92e9d237c43d.

diff --git a/gc.c b/gc.c
index c5ba3e7..306ad0e 100644
--- a/gc.c
+++ b/gc.c
@@ -4484,7 +4484,7 @@ try_move(rb_objspace_t *objspace, rb_heap_t *heap, struct heap_page *sweep_page, https://github.com/ruby/ruby/blob/trunk/gc.c#L4484
                             objspace->rcompactor.total_moved++;
                             gc_move(objspace, (VALUE)p, dest);
                             gc_pin(objspace, (VALUE)p);
-                            heap->compact_cursor_index = i + 1;
+                            heap->compact_cursor_index = i;
                             if (from_freelist) {
                                 FL_SET((VALUE)p, FL_FROM_FREELIST);
                             }
-- 
cgit v0.10.2


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

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