diff options
author | Aaron Patterson <tenderlove@ruby-lang.org> | 2020-12-03 17:19:15 -0800 |
---|---|---|
committer | Aaron Patterson <tenderlove@ruby-lang.org> | 2020-12-03 17:19:15 -0800 |
commit | a9d773a2888d37993db172023769822574f1c8e8 (patch) | |
tree | c77f96c0ea75e07f5fe729c1e09ab13ec84c5e60 | |
parent | 9195310168fa43186b1918fb0432a54b000fcbba (diff) | |
download | ruby-a9d773a2888d37993db172023769822574f1c8e8.tar.gz |
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.
-rw-r--r-- | gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4484,7 +4484,7 @@ try_move(rb_objspace_t *objspace, rb_heap_t *heap, struct heap_page *sweep_page, 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); } |