Index: test/cctest/test-cpu-profiler.cc |
diff --git a/test/cctest/test-cpu-profiler.cc b/test/cctest/test-cpu-profiler.cc |
index 17611acbf91409a796146dca528c85cf23d53da2..beb73c5a648f696c88ba9823ab9fc41f2c4736d3 100644 |
--- a/test/cctest/test-cpu-profiler.cc |
+++ b/test/cctest/test-cpu-profiler.cc |
@@ -26,9 +26,6 @@ TEST(StartStop) { |
ProfileGenerator generator(&profiles); |
ProfilerEventsProcessor processor(i::Isolate::Current(), &generator); |
processor.Start(); |
- while (!processor.running()) { |
- i::Thread::YieldCPU(); |
- } |
processor.Stop(); |
processor.Join(); |
} |
@@ -90,9 +87,6 @@ TEST(CodeEvents) { |
ProfileGenerator generator(&profiles); |
ProfilerEventsProcessor processor(i::Isolate::Current(), &generator); |
processor.Start(); |
- while (!processor.running()) { |
- i::Thread::YieldCPU(); |
- } |
// Enqueue code creation events. |
i::HandleScope scope; |
@@ -154,9 +148,6 @@ TEST(TickEvents) { |
ProfileGenerator generator(&profiles); |
ProfilerEventsProcessor processor(i::Isolate::Current(), &generator); |
processor.Start(); |
- while (!processor.running()) { |
- i::Thread::YieldCPU(); |
- } |
processor.CodeCreateEvent(i::Logger::BUILTIN_TAG, |
"bbb", |
@@ -247,9 +238,6 @@ TEST(Issue1398) { |
ProfileGenerator generator(&profiles); |
ProfilerEventsProcessor processor(i::Isolate::Current(), &generator); |
processor.Start(); |
- while (!processor.running()) { |
- i::Thread::YieldCPU(); |
- } |
processor.CodeCreateEvent(i::Logger::BUILTIN_TAG, |
"bbb", |