summaryrefslogtreecommitdiffstats
path: root/dom/base/nsJSEnvironment.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-02-07 23:02:22 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-02-07 23:02:22 +0100
commitd6f9957011bf2e52a9c531d4e9788f5aa8ea6032 (patch)
treef33203a79f05bc27a0045be5f0874713bd5e2986 /dom/base/nsJSEnvironment.cpp
parent6992106dc7894fab3f620263e99b4083b36bf9e8 (diff)
downloadUXP-d6f9957011bf2e52a9c531d4e9788f5aa8ea6032.tar
UXP-d6f9957011bf2e52a9c531d4e9788f5aa8ea6032.tar.gz
UXP-d6f9957011bf2e52a9c531d4e9788f5aa8ea6032.tar.lz
UXP-d6f9957011bf2e52a9c531d4e9788f5aa8ea6032.tar.xz
UXP-d6f9957011bf2e52a9c531d4e9788f5aa8ea6032.zip
Revert "Increase purple limit triggers for CC."
This reverts commit babedf6c696f88734e59b63d0c6614962cc57519.
Diffstat (limited to 'dom/base/nsJSEnvironment.cpp')
-rw-r--r--dom/base/nsJSEnvironment.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/dom/base/nsJSEnvironment.cpp b/dom/base/nsJSEnvironment.cpp
index 3f28533d3..dfd380fc2 100644
--- a/dom/base/nsJSEnvironment.cpp
+++ b/dom/base/nsJSEnvironment.cpp
@@ -126,13 +126,13 @@ 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 100
+#define NS_CC_FORCED_PURPLE_LIMIT 10
// 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
// Trigger a CC if the purple buffer exceeds this size when we check it.
-#define NS_CC_PURPLE_LIMIT 2000
+#define NS_CC_PURPLE_LIMIT 200
// Large value used to specify that a script should run essentially forever
#define NS_UNLIMITED_SCRIPT_RUNTIME (0x40000000LL << 32)