Run script in ProfLazyMode test longer to improve stability.

Prior to this change debug version of the test crashed 2 of 1000 times. After the change no crashes (out of 1000 runs) occured.

Review URL: http://codereview.chromium.org/115772


git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2059 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 46eb6965
......@@ -165,9 +165,9 @@ static int CheckThatProfilerWorks(int log_pos) {
"for (var i = 0; i < 1000; ++i) { "
"(function(x) { return %d * x; })(i); }",
log_pos);
// Run code for 100 msecs to get some ticks.
// Run code for 200 msecs to get some ticks.
const int64_t started_us = i::OS::Ticks();
while (i::OS::Ticks() - started_us < 100 * 1000) {
while (i::OS::Ticks() - started_us < 200 * 1000) {
CompileAndRunScript(script_src.start());
}
......
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