Bug 525323 - Windows CE ux/perf regression between Alpha 2 and Beta 1.
authorJustin Dolske <dolske@mozilla.com>
Fri, 30 Oct 2009 22:39:30 -0700
changeset 34436 8132c52d4dee2361f3457996ccf83dbfdd2ee1d7
parent 34435 7f6e2f4abdfda3a2786cdb96dc6cb3b1f268a167
child 34437 c0dbbcfdb583a9061b2f88286668564863c90638
push idunknown
push userunknown
push dateunknown
bugs525323
milestone1.9.3a1pre
Bug 525323 - Windows CE ux/perf regression between Alpha 2 and Beta 1.
xpcom/base/nsMemoryImpl.cpp
--- a/xpcom/base/nsMemoryImpl.cpp
+++ b/xpcom/base/nsMemoryImpl.cpp
@@ -110,20 +110,23 @@ nsMemoryImpl::HeapMinimize(PRBool aImmed
  * and after all, 40mb should be good enough for any web app
  * unless it's part of an office suite.
  */
 static const int kRequiredMemory = 0x3000000;
 
 NS_IMETHODIMP
 nsMemoryImpl::IsLowMemory(PRBool *result)
 {
-#if defined(WINCE)
+#if defined(WINCE_WINDOWS_MOBILE)
     MEMORYSTATUS stat;
     GlobalMemoryStatus(&stat);
     *result = (stat.dwMemoryLoad >= 98);
+#elif defined(WINCE)
+    // Bug 525323 - GlobalMemoryStatus kills perf on WinCE.
+    *result = PR_FALSE;
 #elif defined(XP_WIN)
     MEMORYSTATUSEX stat;
     stat.dwLength = sizeof stat;
     GlobalMemoryStatusEx(&stat);
     *result = (stat.ullAvailPageFile < kRequiredMemory) &&
         ((float)stat.ullAvailPageFile / stat.ullTotalPageFile) < 0.1;
 #elif defined(NS_OSSO)
     int fd = open (kHighMark, O_RDONLY);