Closed
Description
Deallocation of object chains seems to require stack space proportional to the size of the chain. The following example, for instance, fails with a "ran out of stack" error:
extern mod extra;
use extra::dlist::DList;
use extra::container::Deque;
fn main() {
let mut m = ~ DList::new::<int>();
for _ in range(0, 17000000) {
m.push_front(0);
}
println("This line is printed");
// Does not exit cleanly: "ran out of stack"
}
Metadata
Metadata
Assignees
Labels
No labels