Bug 1006899 - Prevent stack iterations while recovering allocations. r=bhackett, a=sledru