Index: test/cctest/test-debug.cc |
diff --git a/test/cctest/test-debug.cc b/test/cctest/test-debug.cc |
index 90453f78ce2946a0b2f03116243c918a2dfa0afb..484eb8e3fb1aabef97521f31bbb3dc113e3fd0ac 100644 |
--- a/test/cctest/test-debug.cc |
+++ b/test/cctest/test-debug.cc |
@@ -4714,7 +4714,7 @@ class ThreadBarrier { |
ThreadBarrier::ThreadBarrier(int num_threads) |
: num_threads_(num_threads), num_blocked_(0) { |
- lock_ = new v8::internal::Mutex; |
+ lock_ = OS::CreateMutex(); |
sem_ = OS::CreateSemaphore(0); |
invalid_ = false; // A barrier may only be used once. Then it is invalid. |
} |