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

Unified Diff: LayoutTests/fast/workers/resources/worker-util.js

Issue 953793002: Oilpan: improve fast/workers/worker-document-leak.html stability. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/workers/shared-worker-lifecycle.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/workers/resources/worker-util.js
diff --git a/LayoutTests/fast/workers/resources/worker-util.js b/LayoutTests/fast/workers/resources/worker-util.js
index 22a07d26febcf34547f99c7cb19c70e03f098b2d..4566343dcb3d12304cbf1f9d7db3d7b7b67ce800 100644
--- a/LayoutTests/fast/workers/resources/worker-util.js
+++ b/LayoutTests/fast/workers/resources/worker-util.js
@@ -5,24 +5,6 @@ function log(message)
document.getElementById("result").innerHTML += message + "<br>";
}
-function gc(forceAlloc)
-{
- if (typeof GCController !== "undefined")
- GCController.collect();
-
- if (typeof GCController == "undefined" || forceAlloc) {
- function gcRec(n) {
- if (n < 1)
- return {};
- var temp = {i: "ab" + i + (i / 100000)};
- temp += "foo";
- gcRec(n-1);
- }
- for (var i = 0; i < 1000; i++)
- gcRec(10)
- }
-}
-
function waitUntilWorkerThreadsExit(callback)
{
waitUntilThreadCountMatches(callback, 0);
@@ -32,7 +14,7 @@ function waitUntilThreadCountMatches(callback, count)
{
// When running in a browser, just wait for one second then call the callback.
if (!window.testRunner) {
- setTimeout(function() { gc(true); callback(); }, 1000);
+ setTimeout(function() { gc(); callback(); }, 1000);
return;
}
« no previous file with comments | « no previous file | LayoutTests/fast/workers/shared-worker-lifecycle.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698