diff options
Diffstat (limited to 'deps/v8/src/zone/zone.h')
-rw-r--r-- | deps/v8/src/zone/zone.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/deps/v8/src/zone/zone.h b/deps/v8/src/zone/zone.h index b113f49585..e2b66253f5 100644 --- a/deps/v8/src/zone/zone.h +++ b/deps/v8/src/zone/zone.h @@ -37,12 +37,9 @@ namespace internal { // Note: The implementation is inherently not thread safe. Do not use // from multi-threaded code. -enum class SegmentSize { kLarge, kDefault }; - class V8_EXPORT_PRIVATE Zone final { public: - Zone(AccountingAllocator* allocator, const char* name, - SegmentSize segment_size = SegmentSize::kDefault); + Zone(AccountingAllocator* allocator, const char* name); ~Zone(); // Allocate 'size' bytes of memory in the Zone; expands the Zone by @@ -102,7 +99,7 @@ class V8_EXPORT_PRIVATE Zone final { static const size_t kMinimumSegmentSize = 8 * KB; // Never allocate segments larger than this size in bytes. - static const size_t kMaximumSegmentSize = 1 * MB; + static const size_t kMaximumSegmentSize = 32 * KB; // Report zone excess when allocation exceeds this limit. static const size_t kExcessLimit = 256 * MB; @@ -136,7 +133,6 @@ class V8_EXPORT_PRIVATE Zone final { Segment* segment_head_; const char* name_; bool sealed_; - SegmentSize segment_size_; }; // ZoneObject is an abstraction that helps define classes of objects |