Index: src/platform-solaris.cc |
diff --git a/src/platform-solaris.cc b/src/platform-solaris.cc |
index b1d88af2939de69b8a4fc31a18786318a24af346..dd5c7a0d8483aac5e9ab5c78d7e180a2146e27b5 100644 |
--- a/src/platform-solaris.cc |
+++ b/src/platform-solaris.cc |
@@ -110,7 +110,7 @@ static void* highest_ever_allocated = reinterpret_cast<void*>(0); |
static void UpdateAllocatedSpaceLimits(void* address, int size) { |
ASSERT(limit_mutex != NULL); |
- ScopedLock lock(limit_mutex); |
+ LockGuard<Mutex> lock_guard(limit_mutex); |
lowest_ever_allocated = Min(lowest_ever_allocated, address); |
highest_ever_allocated = |
@@ -479,7 +479,7 @@ void OS::SetUp() { |
// call this setup code within the same millisecond. |
uint64_t seed = static_cast<uint64_t>(TimeCurrentMillis()); |
srandom(static_cast<unsigned int>(seed)); |
- limit_mutex = CreateMutex(); |
+ limit_mutex = new Mutex(); |
} |