Reviewers: Michael Achenbach,

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

[email protected]

Please review this at https://codereview.chromium.org/1175123003/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+3, -0 lines):
  M test/mjsunit/regress/regress-crbug-500497.js


Index: test/mjsunit/regress/regress-crbug-500497.js
diff --git a/test/mjsunit/regress/regress-crbug-500497.js b/test/mjsunit/regress/regress-crbug-500497.js index 9117440c2c843fe0b37ee68f5cd059e2b7314d1c..2d3d40f0f774061bfe31864bcd1f7d76eb4be320 100644
--- 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); })();


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to