Skip to content

Commit 0c1c083

Browse files
k-sareenwks
andauthored
Fix bug in line mark when MARK_LINE_AT_SCAN_TIME=false (#1171)
Previously we did not mark the line for an object in `trace_object_with_opportunistic_copy` if we leave the object in-place when `MARK_LINE_AT_SCAN_TIME=false`. --------- Co-authored-by: Kunshan Wang <wks1986@gmail.com>
1 parent 5edfd85 commit 0c1c083

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/policy/immix/immixspace.rs

+4
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,10 @@ impl<VM: VMBinding> ImmixSpace<VM> {
646646
#[cfg(feature = "vo_bit")]
647647
vo_bit::helper::on_object_marked::<VM>(object);
648648

649+
if !super::MARK_LINE_AT_SCAN_TIME {
650+
self.mark_lines(object);
651+
}
652+
649653
object
650654
} else {
651655
// We are forwarding objects. When the copy allocator allocates the block, it should

0 commit comments

Comments
 (0)