Index: src/zone/zone.h |
diff --git a/src/zone/zone.h b/src/zone/zone.h |
index 4e3b96eb206e8ff1a247130600ea3ac5e341e3c8..01ddac18c581de036e7809c5dbb083e29f9d5b64 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 { |
@@ -114,6 +117,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 |