Backed out changeset 1c6223f7c74f (bug 876029) for Android armv6 mochitest-1/3 crahes.

This commit is contained in:
Ryan VanderMeulen
2013-07-07 21:18:36 -04:00
parent b46ac21288
commit a134a1a814
7 changed files with 71 additions and 146 deletions

View File

@@ -15,7 +15,6 @@
#include "nsIObserverService.h"
#include "nsIRunnable.h"
#include "nsISupports.h"
#include "nsMemoryPressure.h"
#include "nsPrintfCString.h"
#include "nsThread.h"
@@ -188,7 +187,7 @@ bool MaybeScheduleMemoryPressureEvent()
sLastLowMemoryNotificationTime = PR_IntervalNow();
LOG("Scheduling memory pressure notification.");
NS_DispatchEventualMemoryPressure(MemPressure_New);
ScheduleMemoryPressureEvent();
return true;
}
@@ -213,7 +212,7 @@ void CheckMemAvailable()
// so don't worry about firing this notification too often.
LOG("Detected low virtual memory.");
PR_ATOMIC_INCREMENT(&sNumLowVirtualMemEvents);
NS_DispatchEventualMemoryPressure(MemPressure_New);
ScheduleMemoryPressureEvent();
}
else if (stat.ullAvailPageFile < sLowCommitSpaceThreshold * 1024 * 1024) {
LOG("Detected low available page file space.");