Bug 988880 - Disable startup cache on b2g. r=fabrice
authorBobby Holley <bobbyholley@gmail.com>
Mon, 21 Apr 2014 10:20:49 -0700
changeset 197909 87a0bf86dc090dba8660f743f940f1f25d844fd1
parent 197908 956f6d2dfc8157e521e0d34e34de49af509515c8
child 197910 78b0aaa91320739a35d149b7e8524264eb29f4e4
push id3624
push userasasaki@mozilla.com
push dateMon, 09 Jun 2014 21:49:01 +0000
treeherdermozilla-beta@b1a5da15899a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfabrice
bugs988880
milestone31.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 988880 - Disable startup cache on b2g. r=fabrice
startupcache/StartupCache.cpp
--- a/startupcache/StartupCache.cpp
+++ b/startupcache/StartupCache.cpp
@@ -88,16 +88,19 @@ static const char sMetroStartupCacheName
 
 StartupCache*
 StartupCache::GetSingleton()
 {
   if (!gStartupCache) {
     if (XRE_GetProcessType() != GeckoProcessType_Default) {
       return nullptr;
     }
+#ifdef MOZ_B2G
+    return nullptr;
+#endif
 
     StartupCache::InitSingleton();
   }
 
   return StartupCache::gStartupCache;
 }
 
 void