| Index: src/zone/zone.cc
|
| diff --git a/src/zone/zone.cc b/src/zone/zone.cc
|
| index fd0b14733cd21f5d55e9eef95b0143b5f14d400f..7228081d7d75825d362229d5a28c4f2312700373 100644
|
| --- a/src/zone/zone.cc
|
| +++ b/src/zone/zone.cc
|
| @@ -41,15 +41,20 @@ const size_t kASanRedzoneBytes = 0;
|
|
|
| } // namespace
|
|
|
| -Zone::Zone(AccountingAllocator* allocator)
|
| +Zone::Zone(AccountingAllocator* allocator, const char* name)
|
| : allocation_size_(0),
|
| segment_bytes_allocated_(0),
|
| position_(0),
|
| limit_(0),
|
| allocator_(allocator),
|
| - segment_head_(nullptr) {}
|
| + segment_head_(nullptr),
|
| + name_(name) {
|
| + allocator_->ZoneCreation(this);
|
| +}
|
|
|
| Zone::~Zone() {
|
| + allocator_->ZoneDestruction(this);
|
| +
|
| DeleteAll();
|
|
|
| DCHECK(segment_bytes_allocated_ == 0);
|
|
|