| Index: src/platform-macos.cc
|
| diff --git a/src/platform-macos.cc b/src/platform-macos.cc
|
| index 9d8d076bb052331c10571eb55103755f4fb96ef2..7aa02a7674f96697306e244bdeb6e13f04809a5b 100644
|
| --- a/src/platform-macos.cc
|
| +++ b/src/platform-macos.cc
|
| @@ -93,7 +93,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(limit_mutex);
|
|
|
| lowest_ever_allocated = Min(lowest_ever_allocated, address);
|
| highest_ever_allocated =
|
| @@ -443,7 +443,7 @@ void OS::SetUp() {
|
| // Seed the random number generator. We preserve microsecond resolution.
|
| uint64_t seed = static_cast<uint64_t>(TimeCurrentMillis()) ^ (getpid() << 16);
|
| srandom(static_cast<unsigned int>(seed));
|
| - limit_mutex = CreateMutex();
|
| + limit_mutex = new Mutex();
|
| }
|
|
|
|
|
|
|