summaryrefslogtreecommitdiffstats
path: root/WebCore/bindings
diff options
context:
space:
mode:
authorShimeng (Simon) Wang <swang@google.com>2011-01-21 15:09:09 -0800
committerShimeng (Simon) Wang <swang@google.com>2011-01-24 12:18:08 -0800
commit6e8da6e69536dd9fd167ad0f7a429c43cea6e6d2 (patch)
treefc3f5b209fb4cf18b2f6792148ec0bd6250fba82 /WebCore/bindings
parent908703e420f4931f74527aaeb3d5faabdd66c28a (diff)
downloadexternal_webkit-6e8da6e69536dd9fd167ad0f7a429c43cea6e6d2.zip
external_webkit-6e8da6e69536dd9fd167ad0f7a429c43cea6e6d2.tar.gz
external_webkit-6e8da6e69536dd9fd167ad0f7a429c43cea6e6d2.tar.bz2
Use platform bridge to control high usage delta MB.
This change gives flexibility to change that value in Java side. issue: 3317722 Change-Id: I71a548871783cc604e0daec63e6bbfb26ecc1e1f
Diffstat (limited to 'WebCore/bindings')
-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