Fix marking of partial string tail in iteration

This commit is contained in:
bakaq
2025-10-14 16:19:43 -03:00
parent d7d5dfe059
commit fdcd92db08

View File

@@ -118,8 +118,8 @@ impl<'a> EagerStackfulPreOrderHeapIter<'a> {
(HeapCellValueTag::PStrLoc, h) => { (HeapCellValueTag::PStrLoc, h) => {
let tail_idx = self.heap.scan_slice_to_str(h).tail_idx; let tail_idx = self.heap.scan_slice_to_str(h).tail_idx;
self.heap[tail_idx].set_mark_bit(self.mark_phase);
self.iter_stack.push(self.heap[tail_idx]); self.iter_stack.push(self.heap[tail_idx]);
self.heap[tail_idx].set_mark_bit(self.mark_phase);
} }
_ => { _ => {
} }