Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
High memory consumption and crashes when running t/spec/S07-slip/slip.t #2606
The memory consumption when running
differs markedly on my system. On my 32 bit Linux running the first variant reports
while the second variant crashes with the following output
As can be seen the maxresident numbers are vastly different and this leads to an out of memory failure.
On 64 bit systems the second variant doesn't crash, instead it hangs bringing my vm to a crawl.
With the help of AlexDaniel's++ bisectable wizardry a suspect commit has been identified, i.e. 3a68cc9
Both variants, see above, should behave more or less the same wrt to memory consumption, the time it takes to run them and the result of the run
Steps to Reproduce
First of all, I've put in a general change to prevent runaway memory usage if this kind of problem occurs.
Then, I also tracked down the root cause of the problem, which was a bug that did indeed affect inlining of spesh plugins that gained extra guards in the guard set after specialization. I fixed it also.