Add multithreading test for SamplingCircularQueue, fix implementation.
authormikhail.naganov@gmail.com <mikhail.naganov@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 22 Mar 2010 14:23:45 +0000 (14:23 +0000)
committermikhail.naganov@gmail.com <mikhail.naganov@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 22 Mar 2010 14:23:45 +0000 (14:23 +0000)
commit71754ebe81875fac97e9ef2d5340d77cf5c53515
tree89db2343b2be5f33a7e2c5adad26ae9900d4ab89
parent82a673b8bfbcaafb117eafb99584282c9cf5c395
Add multithreading test for SamplingCircularQueue, fix implementation.

This is for the case of Linux, where sampling is done using SIGPROF
signal handler which is executed in the context of an interrupted
thread. In this case, my previous implementation with TLS doesn't
work.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4207 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/circular-queue-inl.h
src/circular-queue.cc
src/circular-queue.h
src/cpu-profiler.cc
src/cpu-profiler.h
src/globals.h
test/cctest/test-circular-queue.cc
test/cctest/test-cpu-profiler.cc