diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-31 06:30:31 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-31 06:30:31 +0000 |
commit | 431ec41fe1562410a68b52aee7b37fea6e1adfbf (patch) | |
tree | ecd445bb3fe3a1a32d27e7062caea28b862d4703 /net/proxy/proxy_resolver_v8.h | |
parent | fdf3e13c44fd319d3cc186ea46eebfb0eafe53ad (diff) | |
download | chromium_src-431ec41fe1562410a68b52aee7b37fea6e1adfbf.zip chromium_src-431ec41fe1562410a68b52aee7b37fea6e1adfbf.tar.gz chromium_src-431ec41fe1562410a68b52aee7b37fea6e1adfbf.tar.bz2 |
When running in metro mode, remember the default isolate on the main thread
The V8 proxy resolver depends on using the default isolate which is
created on the main thread.
BUG=259218
R=cpu@chromium.org, eroman@chromium.org
Review URL: https://codereview.chromium.org/21084006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214586 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/proxy/proxy_resolver_v8.h')
-rw-r--r-- | net/proxy/proxy_resolver_v8.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/net/proxy/proxy_resolver_v8.h b/net/proxy/proxy_resolver_v8.h index c6dbdd4..76ec725 100644 --- a/net/proxy/proxy_resolver_v8.h +++ b/net/proxy/proxy_resolver_v8.h @@ -94,6 +94,16 @@ class NET_EXPORT_PRIVATE ProxyResolverV8 : public ProxyResolver { // Remember the default Isolate, must be called from the main thread. This // hack can be removed when the "default Isolate" concept is gone. static void RememberDefaultIsolate(); + +#if defined(OS_WIN) + // Create an isolate to use for the proxy resolver. Until the "default + // Isolate" concept is gone, it is preferable to invoke + // RememberDefaultIsolate() as creating a new Isolate in additional to the + // default Isolate will waste a few MB of memory and the runtime it took to + // create the default Isolate. + static void CreateIsolate(); +#endif + static v8::Isolate* GetDefaultIsolate(); // Get total/ued heap memory usage of all v8 instances used by the proxy |