Revision: 15354
Author: [email protected]
Date: Thu Jun 27 06:10:43 2013
Log: Turn zone_excess_limit_ into a constant.
The zone_excess_limit_ is not changed at runtime, and there seems to
be no obvious reason to do so in the future.
[email protected]
BUG=
Review URL: https://codereview.chromium.org/18034006
http://code.google.com/p/v8/source/detail?r=15354
Modified:
/branches/bleeding_edge/src/zone-inl.h
/branches/bleeding_edge/src/zone.cc
/branches/bleeding_edge/src/zone.h
=======================================
--- /branches/bleeding_edge/src/zone-inl.h Wed Jun 26 06:36:16 2013
+++ /branches/bleeding_edge/src/zone-inl.h Thu Jun 27 06:10:43 2013
@@ -74,7 +74,7 @@
bool Zone::excess_allocation() {
- return segment_bytes_allocated_ > zone_excess_limit_;
+ return segment_bytes_allocated_ > kExcessLimit;
}
=======================================
--- /branches/bleeding_edge/src/zone.cc Wed Jun 26 06:36:16 2013
+++ /branches/bleeding_edge/src/zone.cc Thu Jun 27 06:10:43 2013
@@ -68,8 +68,7 @@
Zone::Zone(Isolate* isolate)
- : zone_excess_limit_(256 * MB),
- allocation_size_(0),
+ : allocation_size_(0),
segment_bytes_allocated_(0),
position_(0),
limit_(0),
=======================================
--- /branches/bleeding_edge/src/zone.h Wed Jun 26 06:36:16 2013
+++ /branches/bleeding_edge/src/zone.h Thu Jun 27 06:10:43 2013
@@ -91,7 +91,7 @@
static const int kMaximumSegmentSize = 1 * MB;
// Report zone excess when allocation exceeds this limit.
- int zone_excess_limit_;
+ static const int kExcessLimit = 256 * MB;
// The number of bytes allocated in this zone so far.
unsigned allocation_size_;
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.