Commit 5de595a6 authored by jkummerow's avatar jkummerow Committed by Commit bot

[test] Fix gc-stress failures of regress-crbug-500497.js

R=machenbach@chromium.org
NOTRY=y

Review URL: https://codereview.chromium.org/1175123003

Cr-Commit-Position: refs/heads/master@{#29091}
parent 9a92d294
......@@ -13,6 +13,9 @@ function Ctor() {
}
for (var i = 0; i < 120; i++) {
// This print() is important! Without it, in --gc-stress mode, the function
// Ctor is optimized too early. No idea why.
print(i);
// Make the "a" property long-lived, while everything else is short-lived.
global.push(Ctor().a);
(function FillNewSpace() { new Array(10000); })();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment