Prevents some GC for alloc which can occur if the allocation stack overflows. Bug: 18707404 (cherry picked from commit 4911153d) Change-Id: I4748485dd495526ab1a313f366d93dbb3ee8112b