| Index: src/zone/zone.h
|
| diff --git a/src/zone/zone.h b/src/zone/zone.h
|
| index dbc1dadadd6d99d778af7a53a6b52904a2d1ae2b..c916972dcff40811f920af206ce329c9bb7ec116 100644
|
| --- a/src/zone/zone.h
|
| +++ b/src/zone/zone.h
|
| @@ -50,6 +50,9 @@ class V8_EXPORT_PRIVATE Zone final {
|
| return static_cast<T*>(New(length * sizeof(T)));
|
| }
|
|
|
| + // Seals the zone to prevent any further allocation.
|
| + void Seal() { sealed_ = true; }
|
| +
|
| // Returns true if more memory has been allocated in zones than
|
| // the limit allows.
|
| bool excess_allocation() const {
|
| @@ -106,6 +109,7 @@ class V8_EXPORT_PRIVATE Zone final {
|
|
|
| Segment* segment_head_;
|
| const char* name_;
|
| + bool sealed_;
|
| };
|
|
|
| // ZoneObject is an abstraction that helps define classes of objects
|
|
|