Index: third_party/WebKit/LayoutTests/fast/js/exec-state-marking.html |
diff --git a/third_party/WebKit/LayoutTests/fast/js/exec-state-marking.html b/third_party/WebKit/LayoutTests/fast/js/exec-state-marking.html |
index f3fe9144535826e4b594c00fd6dba6bb640bde4d..77efcbf47e340251b521ad0a832b1fc14cd008e6 100644 |
--- a/third_party/WebKit/LayoutTests/fast/js/exec-state-marking.html |
+++ b/third_party/WebKit/LayoutTests/fast/js/exec-state-marking.html |
@@ -8,7 +8,7 @@ PASS: You didn't crash. |
</pre> |
<a id="a"></a> |
- |
+<script src="../../resources/gc.js"></script> |
<script> |
function log(s) |
{ |
@@ -33,15 +33,6 @@ FailureObject.prototype.toString = function() |
return "FAIL"; // A marker to indicate that an object was collected and then overwritten by a FailureObject. |
} |
-function gc() |
-{ |
- if (window.GCController) |
- GCController.collect(); |
- else |
- for (var i = 0; i < 10000; ++i) // Allocate a sufficient number of objects to force a GC. |
- new FailureObject; |
-} |
- |
function gc1() |
{ |
var script = document.createElement("script"); |