summaryrefslogtreecommitdiffstats
path: root/WebCore/bindings/v8/V8GCController.cpp
diff options
context:
space:
mode:
authorShimeng (Simon) Wang <swang@google.com>2011-01-25 10:27:36 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-01-25 10:27:36 -0800
commit47e08d2ef91489605378dab64166163ceb454fc7 (patch)
tree284fe27c8a6406ff9aa97b3c7e54768ac1cb3707 /WebCore/bindings/v8/V8GCController.cpp
parent7cf14d751364973cc8ce88fe9b822008ef83d2a5 (diff)
parent6e8da6e69536dd9fd167ad0f7a429c43cea6e6d2 (diff)
downloadexternal_webkit-47e08d2ef91489605378dab64166163ceb454fc7.zip
external_webkit-47e08d2ef91489605378dab64166163ceb454fc7.tar.gz
external_webkit-47e08d2ef91489605378dab64166163ceb454fc7.tar.bz2
Merge "Use platform bridge to control high usage delta MB." into honeycomb
Diffstat (limited to 'WebCore/bindings/v8/V8GCController.cpp')
-rw-r--r--WebCore/bindings/v8/V8GCController.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/WebCore/bindings/v8/V8GCController.cpp b/WebCore/bindings/v8/V8GCController.cpp
index 3eeacec..9107b51 100644
--- a/WebCore/bindings/v8/V8GCController.cpp
+++ b/WebCore/bindings/v8/V8GCController.cpp
@@ -453,8 +453,7 @@ void V8GCController::checkMemoryUsage()
// Query the PlatformBridge for memory thresholds as these vary device to device.
static const int lowUsageMB = PlatformBridge::lowMemoryUsageMB();
static const int highUsageMB = PlatformBridge::highMemoryUsageMB();
- // We use a delta of -1 to ensure that when we are in a low memory situation we always trigger a GC.
- static const int highUsageDeltaMB = -1;
+ static const int highUsageDeltaMB = PlatformBridge::highUsageDeltaMB();
#else
return;
#endif