Commit beeba9e2 authored by Mike Hommey's avatar Mike Hommey
Browse files

Bug 697301 - Avoid the compiler making optimizations to mozalloc_abort that...

Bug 697301 - Avoid the compiler making optimizations to mozalloc_abort that end up corrupting stack traces. r=cjones
parent ec28cad6
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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