| Index: src/heap.cc
|
| diff --git a/src/heap.cc b/src/heap.cc
|
| index ad352bce50ee38990042edfe746708872799c73d..9afdc7eeccf631f856eff7a247a84d464170bc80 100644
|
| --- a/src/heap.cc
|
| +++ b/src/heap.cc
|
| @@ -6897,7 +6897,7 @@ bool Heap::SetUp() {
|
|
|
| store_buffer()->SetUp();
|
|
|
| - if (FLAG_concurrent_recompilation) relocation_mutex_ = OS::CreateMutex();
|
| + if (FLAG_concurrent_recompilation) relocation_mutex_ = new Mutex;
|
| #ifdef DEBUG
|
| relocation_mutex_locked_by_optimizer_thread_ = false;
|
| #endif // DEBUG
|
| @@ -8002,7 +8002,7 @@ static LazyMutex checkpoint_object_stats_mutex = LAZY_MUTEX_INITIALIZER;
|
|
|
|
|
| void Heap::CheckpointObjectStats() {
|
| - ScopedLock lock(checkpoint_object_stats_mutex.Pointer());
|
| + LockGuard<Mutex> lock_guard(checkpoint_object_stats_mutex.Pointer());
|
| Counters* counters = isolate()->counters();
|
| #define ADJUST_LAST_TIME_OBJECT_COUNT(name) \
|
| counters->count_of_##name()->Increment( \
|
|
|