Backed out changeset 1c6223f7c74f (bug 876029) for Android armv6 mochitest-1/3 crahes.
This commit is contained in:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user