Subject: | Running tests eats MUCH memory |
We've got a test script that ran for a while, and it decided to eat up all the memory on the machine before too long.
It seems to me that the problem is in push_page_stack:
sub push_page_stack {
my $self = shift;
$self->{page_stack} = [ @{$self->{page_stack}}, clone($self)];
return 1;
}
When we changed that line to
push( @{$self->{page_stack}}, clone($self) );
all the memory problems seemed to go away. Not sure if that breaks other functionality, though.