Index: test/cctest/test-threads.cc |
diff --git a/test/cctest/test-threads.cc b/test/cctest/test-threads.cc |
index a35a88dc26c6d576828db0cf9126262ffb956062..6cc5f523386dcea9ab4cd54a45eb009f36d06b5f 100644 |
--- a/test/cctest/test-threads.cc |
+++ b/test/cctest/test-threads.cc |
@@ -180,7 +180,7 @@ TEST(ThreadIdValidation) { |
const int kNThreads = 100; |
i::List<ThreadIdValidationThread*> threads(kNThreads); |
i::List<i::ThreadId> refs(kNThreads); |
- i::Semaphore* semaphore = i::OS::CreateSemaphore(0); |
+ i::Semaphore* semaphore = new i::Semaphore(0); |
ThreadIdValidationThread* prev = NULL; |
for (int i = kNThreads - 1; i >= 0; i--) { |
ThreadIdValidationThread* newThread = |