Index: test/cctest/test-log.cc |
diff --git a/test/cctest/test-log.cc b/test/cctest/test-log.cc |
index 6bf56f0fa40395405586c842d197e4ff56cf508c..8bf306f2de85fe0f05aebc757841b5d68f2ab794 100644 |
--- a/test/cctest/test-log.cc |
+++ b/test/cctest/test-log.cc |
@@ -127,7 +127,7 @@ class LoopingThread : public v8::internal::Thread { |
public: |
explicit LoopingThread(v8::internal::Isolate* isolate) |
: v8::internal::Thread(isolate), |
- semaphore_(v8::internal::OS::CreateSemaphore(0)), |
+ semaphore_(new v8::internal::Semaphore(0)), |
run_(true) { |
} |
@@ -213,7 +213,7 @@ class TestSampler : public v8::internal::Sampler { |
public: |
explicit TestSampler(v8::internal::Isolate* isolate) |
: Sampler(isolate, 0, true, true), |
- semaphore_(v8::internal::OS::CreateSemaphore(0)), |
+ semaphore_(new v8::internal::Semaphore(0)), |
was_sample_stack_called_(false) { |
} |