Bug 697301 - Avoid the compiler making optimizations to mozalloc_abort that end up corrupting stack traces. r=cjones

This commit is contained in:
Mike Hommey 2012-01-13 07:24:17 +01:00
parent 62c12f3946
commit 0c75d35a82

View File

@ -58,7 +58,9 @@
static int gDummyCounter;
static void
// Not inlining this function avoids the compiler making optimizations
// that end up corrupting stack traces.
MOZ_NEVER_INLINE static void
TouchBadMemory()
{
// XXX this should use the frame poisoning code