1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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 88bb1a672c.
This commit is contained in:
Aaron Patterson 2020-12-03 17:19:15 -08:00
parent 9195310168
commit a9d773a288
No known key found for this signature in database
GPG key ID: 953170BCB4FFAFC6

2
gc.c
View file

@ -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);
}