Title: [102936] trunk
Revision
102936
Author
[email protected]
Date
2011-12-15 07:36:15 -0800 (Thu, 15 Dec 2011)

Log Message

Web Inspector: [Chromium]  Call LowMemoryNotification instead of IdleNotification
https://bugs.webkit.org/show_bug.cgi?id=71821

Patch by Ulan Degenbaev <[email protected]> on 2011-12-15
Reviewed by Yury Semikhatsky.

* Source/WebCore/bindings/v8/ScriptProfiler.cpp:

Modified Paths

Diff

Modified: trunk/ChangeLog (102935 => 102936)


--- trunk/ChangeLog	2011-12-15 15:11:59 UTC (rev 102935)
+++ trunk/ChangeLog	2011-12-15 15:36:15 UTC (rev 102936)
@@ -1,3 +1,12 @@
+2011-12-15  Ulan Degenbaev  <[email protected]>
+
+        Web Inspector: [Chromium]  Call LowMemoryNotification instead of IdleNotification
+        https://bugs.webkit.org/show_bug.cgi?id=71821
+
+        Reviewed by Yury Semikhatsky.
+
+        * Source/WebCore/bindings/v8/ScriptProfiler.cpp:
+
 2011-12-15  Tor Arne Vestbø  <[email protected]>
 
         [Qt] Don't add WebCoreSupport and WebKit APIs to include WebCore's include path

Modified: trunk/Source/WebCore/bindings/v8/ScriptProfiler.cpp (102935 => 102936)


--- trunk/Source/WebCore/bindings/v8/ScriptProfiler.cpp	2011-12-15 15:11:59 UTC (rev 102935)
+++ trunk/Source/WebCore/bindings/v8/ScriptProfiler.cpp	2011-12-15 15:36:15 UTC (rev 102936)
@@ -61,11 +61,7 @@
 
 void ScriptProfiler::collectGarbage()
 {
-    // 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();
 }
 
 PassRefPtr<InspectorValue> ScriptProfiler::objectByHeapObjectId(unsigned id, InjectedScriptManager* injectedScriptManager)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to