mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Bug 578618 - Remove high_watermark check on maemo > 5. r=dougt
--HG-- extra : rebase_source : 7c485016f3dab422a45426e8c970c5cac6e2cf4d
This commit is contained in:
parent
9f4e67611c
commit
5605374989
@ -58,7 +58,7 @@
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#if defined(MOZ_PLATFORM_MAEMO) && defined(__arm__)
|
||||
#if (MOZ_PLATFORM_MAEMO == 5 || MOZ_PLATFORM_MAEMO == 4) && defined(__arm__)
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
static const char kHighMark[] = "/sys/kernel/high_watermark";
|
||||
@ -128,7 +128,7 @@ nsMemoryImpl::IsLowMemory(PRBool *result)
|
||||
GlobalMemoryStatusEx(&stat);
|
||||
*result = (stat.ullAvailPageFile < kRequiredMemory) &&
|
||||
((float)stat.ullAvailPageFile / stat.ullTotalPageFile) < 0.1;
|
||||
#elif defined(MOZ_PLATFORM_MAEMO) && defined(__arm__)
|
||||
#elif (MOZ_PLATFORM_MAEMO == 5 || MOZ_PLATFORM_MAEMO == 4) && defined(__arm__)
|
||||
static int osso_highmark_fd = -1;
|
||||
if (osso_highmark_fd == -1) {
|
||||
osso_highmark_fd = open (kHighMark, O_RDONLY);
|
||||
|
Loading…
Reference in New Issue
Block a user