| Index: src/heap.cc
|
| diff --git a/src/heap.cc b/src/heap.cc
|
| index 4fd478fb62a40e78ab9b96e9b52012f45fb2b9c7..7bfb07e836ae9b551488ae430f82e2a4216f1b5f 100644
|
| --- a/src/heap.cc
|
| +++ b/src/heap.cc
|
| @@ -6927,7 +6927,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
|
| @@ -8032,7 +8032,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( \
|
|
|