From 45e3ece781fef3c95d8961a2d3bf630a3a9770b9 Mon Sep 17 00:00:00 2001 From: Jonathan Kew Date: Tue, 29 Oct 2013 14:02:36 +0000 Subject: [PATCH] bug 894798 - disable word-cache expiration timer on release builds. r=roc --- gfx/thebes/gfxFont.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gfx/thebes/gfxFont.cpp b/gfx/thebes/gfxFont.cpp index b7dc86e896ff..b71878cb83ac 100644 --- a/gfx/thebes/gfxFont.cpp +++ b/gfx/thebes/gfxFont.cpp @@ -1455,6 +1455,9 @@ gfxFontCache::gfxFontCache() obs->AddObserver(new Observer, "memory-pressure", false); } +#ifndef RELEASE_BUILD + // Currently disabled for release builds, due to unexplained crashes + // during expiration; see bug 717175 & 894798. mWordCacheExpirationTimer = do_CreateInstance("@mozilla.org/timer;1"); if (mWordCacheExpirationTimer) { mWordCacheExpirationTimer-> @@ -1462,6 +1465,7 @@ gfxFontCache::gfxFontCache() SHAPED_WORD_TIMEOUT_SECONDS * 1000, nsITimer::TYPE_REPEATING_SLACK); } +#endif } gfxFontCache::~gfxFontCache()