add forwarding bit to all heap cells (#1384)

This commit is contained in:
Mark Thom
2022-04-05 20:13:17 -06:00
parent 8c99d748e2
commit f3167f6b5f
9 changed files with 91 additions and 110 deletions

View File

@@ -168,7 +168,7 @@ pub fn all_cells_marked_and_unforwarded(heap: &[HeapCellValue]) {
idx
);
assert!(
cell.get_forwarding_bit() != Some(true),
!cell.get_forwarding_bit(),
"cell {:?} at index {} is forwarded",
cell,
idx
@@ -187,7 +187,7 @@ pub fn all_cells_unmarked(heap: &Heap) {
);
assert!(
cell.get_forwarding_bit() != Some(true),
!cell.get_forwarding_bit(),
"cell {:?} at index {} is still forwarded",
cell,
idx