summaryrefslogtreecommitdiffstats
path: root/net/proxy
diff options
context:
space:
mode:
authorulan@chromium.org <ulan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-10 16:17:50 +0000
committerulan@chromium.org <ulan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-10 16:17:50 +0000
commitf88d94abdd4644b2fc2c5e5c18cab7b926e720ed (patch)
treee14f30e9328c5aa01c6626f636b9f52b6746acc1 /net/proxy
parent09996cf72c6506ec18637e4e4842ddb2ec1f7a10 (diff)
downloadchromium_src-f88d94abdd4644b2fc2c5e5c18cab7b926e720ed.zip
chromium_src-f88d94abdd4644b2fc2c5e5c18cab7b926e720ed.tar.gz
chromium_src-f88d94abdd4644b2fc2c5e5c18cab7b926e720ed.tar.bz2
Call LowMemoryNotification instead of IdleNotification when need to free memory.
R=pkasting@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/8503015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109437 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/proxy')
-rw-r--r--net/proxy/proxy_resolver_v8.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/net/proxy/proxy_resolver_v8.cc b/net/proxy/proxy_resolver_v8.cc
index ff597ce..9df6e59 100644
--- a/net/proxy/proxy_resolver_v8.cc
+++ b/net/proxy/proxy_resolver_v8.cc
@@ -489,12 +489,7 @@ class ProxyResolverV8::Context {
void PurgeMemory() {
v8::Locker locked;
- // Repeatedly call the V8 idle notification until it returns true ("nothing
- // more to free"). Note that it makes more sense to do this than to
- // implement a new "delete everything" pass because object references make
- // it difficult to free everything possible in just one pass.
- while (!v8::V8::IdleNotification())
- ;
+ v8::V8::LowMemoryNotification();
}
bool is_resolving_host() const {