correct new copier bug

This commit is contained in:
Mark Thom
2018-09-16 10:57:14 -06:00
parent 70939331d1
commit 908b0a5712
2 changed files with 5 additions and 4 deletions

View File

@@ -84,7 +84,6 @@ pub(crate) trait CopierTarget
match rd.clone() {
Addr::HeapCell(hc) if hc >= old_h => {
self[threshold] = HeapCellValue::Addr(rd);
scan += 1;
},
addr @ Addr::HeapCell(..) | addr @ Addr::StackCell(..) => {
if rd == addr {
@@ -92,8 +91,6 @@ pub(crate) trait CopierTarget
} else {
self[threshold] = HeapCellValue::Addr(addr);
}
scan += 1;
},
_ => {
trail.push((Ref::HeapCell(a), self[a].clone()));