Revision: 2686
Author: [email protected]
Date: Thu Aug 13 15:13:45 2009
Log: Revert http://code.google.com/p/v8/source/detail?r=2670

Now we can pass '--expose_gc' to V8 in the layout test controller. This is  
probably a better option.

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

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

=======================================
--- /branches/bleeding_edge/src/api.cc  Thu Aug 13 02:35:51 2009
+++ /branches/bleeding_edge/src/api.cc  Thu Aug 13 15:13:45 2009
@@ -2593,8 +2593,13 @@
    i::Handle<i::Context> env;
    {
      ENTER_V8;
+#if defined(ANDROID)
+    // On mobile device, full GC is expensive, leave it to the system to
+    // decide when should make a full GC.
+#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