Revision: 2654
Author: [email protected]
Date: Fri Aug  7 11:17:01 2009
Log: Avoid calling GC in Context::New on Android devices.

Review URL: http://codereview.chromium.org/164153
http://code.google.com/p/v8/source/detail?r=2654

Modified:
  /branches/bleeding_edge/src/api.cc

=======================================
--- /branches/bleeding_edge/src/api.cc  Thu Aug  6 06:35:21 2009
+++ /branches/bleeding_edge/src/api.cc  Fri Aug  7 11:17:01 2009
@@ -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