| Index: src/spaces.cc
|
| diff --git a/src/spaces.cc b/src/spaces.cc
|
| index 8a5aa03a4bb397c534992aa1f737f091f99ecb24..e62d381a18399242cefb7c8877c0e57a322b74c8 100644
|
| --- a/src/spaces.cc
|
| +++ b/src/spaces.cc
|
| @@ -2043,8 +2043,8 @@ intptr_t FreeListCategory::Concatenate(FreeListCategory* category) {
|
| // This is safe (not going to deadlock) since Concatenate operations
|
| // are never performed on the same free lists at the same time in
|
| // reverse order.
|
| - ScopedLock lock_target(mutex_);
|
| - ScopedLock lock_source(category->mutex());
|
| + LockGuard<Mutex> target_lock_guard(mutex());
|
| + LockGuard<Mutex> source_lock_guard(category->mutex());
|
| free_bytes = category->available();
|
| if (end_ == NULL) {
|
| end_ = category->end();
|
|
|