Reviewers: iposva,

Description:
Avoid calling GC in Context::New on Android devices.


Please review this at http://codereview.chromium.org/164153

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
   M     src/api.cc


Index: src/api.cc
===================================================================
--- src/api.cc  (revision 2653)
+++ src/api.cc  (working copy)
@@ -2589,9 +2589,12 @@
    i::Handle<i::Context> env;
    {
      ENTER_V8;
+#if defined(ANDROID)
+    // On mobile devices, full GC is expensive.
+#else
      // Give the heap a chance to cleanup if we've disposed contexts.
      i::Heap::CollectAllGarbageIfContextDisposed();
-
+#endif
      v8::Handle<ObjectTemplate> proxy_template = global_template;
      i::Handle<i::FunctionTemplateInfo> proxy_constructor;
      i::Handle<i::FunctionTemplateInfo> global_constructor;



--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to