Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Side by Side Diff: LayoutTests/fast/dom/resources/script-element-gc.js

Issue 211933008: Remove multiple GC calls and replace GCController.collect calls with GCController.collectAll (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: revert change to worker-event-listener Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 function gc() 1 function gc()
2 { 2 {
3 if (window.GCController) 3 if (window.GCController)
4 return GCController.collect(); 4 return GCController.collectAll();
5 5
6 for (var i = 0; i < 10000; i++) { // > force garbage collection (FF requires about 9K allocations before a collect) 6 for (var i = 0; i < 10000; i++) { // > force garbage collection (FF requires about 9K allocations before a collect)
7 var s = new String(""); 7 var s = new String("");
8 } 8 }
9 } 9 }
10 10
11 function removeScriptElement() { 11 function removeScriptElement() {
12 var s = document.getElementById('theScript'); 12 var s = document.getElementById('theScript');
13 s.parentNode.removeChild(s); 13 s.parentNode.removeChild(s);
14 } 14 }
15 15
16 removeScriptElement(); 16 removeScriptElement();
17 gc(); 17 gc();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698