Skip to content

Commit

Permalink
Remove gc from worker-location
Browse files Browse the repository at this point in the history
Bug: 706285
Change-Id: I16266e9fab0d577579c5e4824c116b38c891675f
Reviewed-on: https://chromium-review.googlesource.com/778200
Reviewed-by: Jeremy Roman <jbroman@chromium.org>
Commit-Queue: Jeremy Roman <jbroman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#518243}
  • Loading branch information
mjkim610 authored and Commit Bot committed Nov 21, 2017
1 parent 6f033fa commit b2794d5
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,7 @@ Kyoungdeok Kwon <kkd927@gmail.com>
Kyungyoung Heo <bbvch13531@gmail.com>
Jinyoung Hur <hurims@gmail.com>
Minjeong Lee <apenr1234@gmail.com>
Myung-jong Kim <mjkim610@gmail.com>

ACCESS CO., LTD. <*@access-company.com>
BlackBerry Limited <*@blackberry.com>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,6 @@ function log(message)
document.getElementById("result").innerHTML += message + "<br>";
}

function gc()
{
if (window.GCController)
return GCController.collect();

for (var i = 0; i < 10000; i++) { // > force garbage collection (FF requires about 9K allocations before a collect)
var s = new String("abc");
}
}

if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<body>
<p>Test WorkerLocation properties.</p>
<div id=result></div>
<script src="../../resources/gc.js"></script>
<script src="resources/shared-worker-create-common.js"></script>
<script src="resources/worker-location.js">
</script>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<body>
<p>Test WorkerLocation properties.</p>
<div id=result></div>
<script src="../../resources/gc.js"></script>
<script src="resources/worker-create-common.js"></script>
<script src="resources/worker-location.js"></script>
</body>
Expand Down

0 comments on commit b2794d5

Please sign in to comment.