Skip to content

Commit

Permalink
Skip repeated scan of object during compaction
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzhu2118 authored and tenderlove committed Dec 3, 2020
1 parent 04b96fc commit 88bb1a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gc.c
Expand Up @@ -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;
heap->compact_cursor_index = i + 1;
if (from_freelist) {
FL_SET((VALUE)p, FL_FROM_FREELIST);
}
Expand Down

0 comments on commit 88bb1a6

Please sign in to comment.