From 9143ede148122ead5b07b3a7931f06b9c932bc79 Mon Sep 17 00:00:00 2001 From: Cameron Kaiser Date: Thu, 15 Mar 2018 20:23:24 -0700 Subject: [PATCH] #483: wrong way on purple buffer (otherwise OOMs result) --- dom/base/nsJSEnvironment.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/base/nsJSEnvironment.cpp b/dom/base/nsJSEnvironment.cpp index 34af20a0d..ebb57d418 100644 --- a/dom/base/nsJSEnvironment.cpp +++ b/dom/base/nsJSEnvironment.cpp @@ -125,7 +125,7 @@ static const uint32_t kMaxICCDuration = 2000; // ms // Force a CC after this long if there's more than NS_CC_FORCED_PURPLE_LIMIT // objects in the purple buffer. #define NS_CC_FORCED (2 * 60 * PR_USEC_PER_SEC) // 2 min -#define NS_CC_FORCED_PURPLE_LIMIT 20 +#define NS_CC_FORCED_PURPLE_LIMIT 9 // Don't allow an incremental GC to lock out the CC for too long. #define NS_MAX_CC_LOCKEDOUT_TIME (30 * PR_USEC_PER_SEC) // 30 seconds