| Index: src/heap/spaces.h
|
| diff --git a/src/heap/spaces.h b/src/heap/spaces.h
|
| index 3461de3ef009f18d9549a8de8f18ce831ba2f572..d870b7bb1ffcdc6aaeaa2c71151683157588267e 100644
|
| --- a/src/heap/spaces.h
|
| +++ b/src/heap/spaces.h
|
| @@ -1014,6 +1014,10 @@ class SkipList {
|
| list->AddObject(addr, size);
|
| }
|
|
|
| + void Lock() { mutex_.Lock(); }
|
| +
|
| + void Unlock() { mutex_.Unlock(); }
|
| +
|
| private:
|
| static const int kRegionSizeLog2 = 13;
|
| static const int kRegionSize = 1 << kRegionSizeLog2;
|
| @@ -1022,6 +1026,7 @@ class SkipList {
|
| STATIC_ASSERT(Page::kPageSize % kRegionSize == 0);
|
|
|
| Address starts_[kSize];
|
| + base::Mutex mutex_;
|
| };
|
|
|
|
|
|
|