You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"
}