projects
/
platform
/
upstream
/
v8.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a92d29
)
[test] Fix gc-stress failures of regress-crbug-500497.js
author
jkummerow
<jkummerow@chromium.org>
Wed, 17 Jun 2015 14:24:29 +0000
(07:24 -0700)
committer
Commit bot
<commit-bot@chromium.org>
Wed, 17 Jun 2015 14:24:36 +0000
(14:24 +0000)
R=machenbach@chromium.org
NOTRY=y
Review URL: https://codereview.chromium.org/
1175123003
Cr-Commit-Position: refs/heads/master@{#29091}
test/mjsunit/regress/regress-crbug-500497.js
patch
|
blob
|
history
diff --git
a/test/mjsunit/regress/regress-crbug-500497.js
b/test/mjsunit/regress/regress-crbug-500497.js
index 9117440c2c843fe0b37ee68f5cd059e2b7314d1c..2d3d40f0f774061bfe31864bcd1f7d76eb4be320 100644
(file)
--- a/
test/mjsunit/regress/regress-crbug-500497.js
+++ b/
test/mjsunit/regress/regress-crbug-500497.js
@@
-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); })();