Fix issue 410: test-log/ProfLazyMode flakinness under Linux.
authormikhail.naganov@gmail.com <mikhail.naganov@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 28 Jul 2009 08:34:55 +0000 (08:34 +0000)
committermikhail.naganov@gmail.com <mikhail.naganov@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 28 Jul 2009 08:34:55 +0000 (08:34 +0000)
commit60bdcf9e0137e0ded60fdef0bf0ac93f2ebd4a3f
tree15fe8f49b3079ac1493abdee4db1434648b0527c
parent25eb44253fd93b70fa8914ab2c1fdb52f6238e8b
Fix issue 410: test-log/ProfLazyMode flakinness under Linux.

I found two causes of flakinness:
 - SIGPROF signal isn't delivered to a process;
 - Profiler thread (the one that retrieves tick events from
   the queue and writes to log) doesn't get a CPU;
Both are fixed.

The script from bug description with run count increased to 200 runs without any test failures.

OS X and Windows are unaffected because they don't use signals mechanism.

BUG=http://code.google.com/p/v8/issues/detail?id=410
TEST=see bug description

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2547 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
test/cctest/test-log.cc